(l *zap.Logger, fn func(msgs []*sarama.ConsumerMessage, ts []T) error)
| 15 | } |
| 16 | |
| 17 | func NewBatchHandler[T any](l *zap.Logger, fn func(msgs []*sarama.ConsumerMessage, ts []T) error) *BatchHandler[T] { |
| 18 | return &BatchHandler[T]{fn: fn, l: l} |
| 19 | } |
| 20 | |
| 21 | func (b *BatchHandler[T]) Setup(session sarama.ConsumerGroupSession) error { |
| 22 | return nil |
nothing calls this directly
no outgoing calls
no test coverage detected