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

@@ -34,11 +34,11 @@ func (m *hookEvent) OnGroupManageError(err error) {
}
}
func (m *hookEvent) OnBrokerConnect(_ kgo.BrokerMetadata, _ time.Duration, _ net.Conn, err error) {
func (m *hookEvent) OnBrokerConnect(_ kgo.BrokerMetadata, t time.Duration, _ net.Conn, err error) {
if err != nil {
// m.connected.Store(0)
// if m.fatalOnError {
m.log.Error(context.TODO(), "kgo.OnBrokerConnect", err)
m.log.Error(context.TODO(), "kgo.OnBrokerConnect: "+ t.String(), err)
//}
}
}
@@ -56,10 +56,10 @@ func (m *hookEvent) OnBrokerWrite(_ kgo.BrokerMetadata, _ int16, _ int, _ time.D
}
}
func (m *hookEvent) OnBrokerRead(_ kgo.BrokerMetadata, _ int16, _ int, _ time.Duration, _ time.Duration, err error) {
func (m *hookEvent) OnBrokerRead(_ kgo.BrokerMetadata, _ int16, _ int, t time.Duration, _ time.Duration, err error) {
if err != nil {
// m.connected.Store(0)
m.log.Error(context.TODO(), "kgo.OnBrokerRead", err)
m.log.Error(context.TODO(), "kgo.OnBrokerRead: "+ t.String(), err)
}
}