This commit is contained in:
eson 2023-11-13 22:46:05 +08:00
parent f79a0584fe
commit e1162c6a47
2 changed files with 2 additions and 3 deletions

View File

@ -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)
}
}()

View File

@ -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())
}