mirror of
https://github.com/beego/bee.git
synced 2025-06-12 04:50:40 +00:00
Fix accidently removed time.Sleep
This commit is contained in:
@ -85,7 +85,7 @@ func NewWatcher(paths []string, files []string, isgenerate bool) {
|
||||
go func() {
|
||||
// Wait 1s before autobuild until there is no file change.
|
||||
scheduleTime = time.Now().Add(1 * time.Second)
|
||||
time.Until(scheduleTime)
|
||||
time.Sleep(time.Until(scheduleTime))
|
||||
AutoBuild(files, isgenerate)
|
||||
|
||||
if config.Conf.EnableReload {
|
||||
|
Reference in New Issue
Block a user