mirror of
https://github.com/beego/bee.git
synced 2024-11-21 18:40:54 +00:00
Fix accidently removed time.Sleep
This commit is contained in:
parent
4d1304b78c
commit
df31f04b26
@ -227,7 +227,7 @@ func startWatcher(paths []string, ch chan int) {
|
|||||||
|
|
||||||
// Wait 1s before re-build until there is no file change
|
// Wait 1s before re-build until there is no file change
|
||||||
scheduleTime := time.Now().Add(1 * time.Second)
|
scheduleTime := time.Now().Add(1 * time.Second)
|
||||||
time.Until(scheduleTime)
|
time.Sleep(time.Until(scheduleTime))
|
||||||
_, err := buildDebug()
|
_, err := buildDebug()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Notify("Build Failed: "+err.Error(), "bee")
|
utils.Notify("Build Failed: "+err.Error(), "bee")
|
||||||
|
@ -85,7 +85,7 @@ func NewWatcher(paths []string, files []string, isgenerate bool) {
|
|||||||
go func() {
|
go func() {
|
||||||
// Wait 1s before autobuild until there is no file change.
|
// Wait 1s before autobuild until there is no file change.
|
||||||
scheduleTime = time.Now().Add(1 * time.Second)
|
scheduleTime = time.Now().Add(1 * time.Second)
|
||||||
time.Until(scheduleTime)
|
time.Sleep(time.Until(scheduleTime))
|
||||||
AutoBuild(files, isgenerate)
|
AutoBuild(files, isgenerate)
|
||||||
|
|
||||||
if config.Conf.EnableReload {
|
if config.Conf.EnableReload {
|
||||||
|
Loading…
Reference in New Issue
Block a user