try refactoring && decomposition subsribe && update deps
Some checks failed
test / test (pull_request) Failing after 14m18s
lint / lint (pull_request) Failing after 14m28s

This commit is contained in:
2025-06-09 21:35:24 +03:00
parent ff7a88fcce
commit 3b6475b1ae
6 changed files with 342 additions and 295 deletions

View File

@@ -48,3 +48,10 @@ var eventPool = sync.Pool{
return &event{msg: &broker.Message{}}
},
}
func (p *event) reset() {
clear(p.msg.Header)
p.msg.Body = p.msg.Body[:0]
p.err = nil
p.ack = false
}