修复 time

This commit is contained in:
dengsgo 2019-01-23 10:27:26 +08:00
parent aa27fa263a
commit 042038a60e

View File

@ -36,7 +36,7 @@ func (t *TaskMan) Put(cf *changedFile) {
defer t.putLock.Unlock()
t.lastTaskId = cf.Changed
go func() {
<-time.Tick(time.Millisecond * time.Duration(t.delay))
<-time.After(time.Millisecond * time.Duration(t.delay))
if t.lastTaskId > cf.Changed {
return
}