修复 time

master
dengsgo 2019-01-23 10:27:26 +08:00
parent aa27fa263a
commit 042038a60e
1 changed files with 1 additions and 1 deletions

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
}