fix
This commit is contained in:
parent
f79a0584fe
commit
e1162c6a47
1
main.go
1
main.go
|
@ -141,6 +141,7 @@ func StartNode(cfg *ConfigServer) {
|
|||
go func() {
|
||||
for DequeueHandler != nil {
|
||||
DequeueHandler.Notify(DequeueHandler.NULL)
|
||||
log.Println("DequeueHandler 触发")
|
||||
time.Sleep(time.Second * 5)
|
||||
}
|
||||
}()
|
||||
|
|
|
@ -80,9 +80,7 @@ var FsPasser *passer.Passer[sm.Result] = func() *passer.Passer[sm.Result] {
|
|||
e.Result.Data = d
|
||||
result.Data = d
|
||||
|
||||
if !queue.Empty() {
|
||||
smqueue.counter.Notify(queue.Size())
|
||||
}
|
||||
smqueue.counter.Notify(queue.Size())
|
||||
|
||||
// log.Println("queue remain:", queue.Size())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user