1
0
mirror of https://github.com/beego/bee.git synced 2025-07-16 11:32:17 +00:00

fix: fix build faild with code check!

This commit is contained in:
qiantao
2019-03-06 09:58:33 +08:00
parent f1826c0bc3
commit 95fded2840
5 changed files with 5 additions and 5 deletions

View File

@@ -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.Sleep(scheduleTime.Sub(time.Now()))
time.Sleep(time.Until(scheduleTime))
AutoBuild(files, isgenerate)
if config.Conf.EnableReload {