try refactoring && decomposition subsribe && update deps
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user