修改 <-
This commit is contained in:
@@ -33,7 +33,7 @@ func (t *TaskMan) Put(cf *changeFile) {
|
|||||||
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.Tick(time.Millisecond * time.Duration(t.delay))
|
||||||
if t.lastTaskId > cf.Changed {
|
if t.lastTaskId > cf.Changed {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user