refactor: 将事件处理逻辑从工作池提交改为直接调用OnEvent
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

This commit is contained in:
xinian
2026-02-24 03:51:25 +08:00
committed by cnb
parent a5627e6ba1
commit 0f1adffdd5

View File

@@ -281,10 +281,10 @@ func (s *Server) onevent(c gnet.Conn, v []byte) {
} else {
header.Data = nil // 避免空切片分配
}
s.workerPool.Submit(func() {
t.LF.Producer().Write(header)
})
t.OnEvent(header)
// s.workerPool.Submit(func() {
// t.LF.Producer().Write(header)
// })
}
}