修复 time
parent
aa27fa263a
commit
042038a60e
|
@ -36,7 +36,7 @@ func (t *TaskMan) Put(cf *changedFile) {
|
||||||
defer t.putLock.Unlock()
|
defer t.putLock.Unlock()
|
||||||
t.lastTaskId = cf.Changed
|
t.lastTaskId = cf.Changed
|
||||||
go func() {
|
go func() {
|
||||||
<-time.Tick(time.Millisecond * time.Duration(t.delay))
|
<-time.After(time.Millisecond * time.Duration(t.delay))
|
||||||
if t.lastTaskId > cf.Changed {
|
if t.lastTaskId > cf.Changed {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue