mirror of
https://github.com/beego/bee.git
synced 2024-11-21 18:40:54 +00:00
Fixed bug: repeat build in Mac OS, change to check file ModTime insetad of event time
This commit is contained in:
parent
772e5676f7
commit
bf33c2b05c
9
watch.go
9
watch.go
@ -43,15 +43,6 @@ func NewWatcher(paths []string) {
|
||||
isbuild = false
|
||||
}
|
||||
|
||||
// if t, ok := eventTime[e.Name]; ok {
|
||||
// // if 500ms change many times, then ignore it.
|
||||
// // for liteide often gofmt code after save.
|
||||
// if t.Add(time.Millisecond * 500).After(time.Now()) {
|
||||
// colorLog("[SKIP] %s\n", e.String())
|
||||
// isbuild = false
|
||||
// }
|
||||
// }
|
||||
|
||||
eventTime[e.Name] = mt
|
||||
fmt.Println(mt)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user