| 10 | ) |
| 11 | |
| 12 | type BatchHandler[T any] struct { |
| 13 | fn func(msgs []*sarama.ConsumerMessage, ts []T) error |
| 14 | l *zap.Logger |
| 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} |
nothing calls this directly
no outgoing calls
no test coverage detected