1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 10:00:50 +00:00

Fixed bug: repeat build in Mac OS, change to check file ModTime insetad of event time

This commit is contained in:
Unknown 2013-08-15 12:51:48 +08:00
parent 772e5676f7
commit bf33c2b05c

View File

@ -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)