in batching/batching.go [172:180]
func WithBatchSize(size int) Option { return func(b *Batcher) error { if size < 0 { return errors.New("batch size must be greater than 0") } b.batchSize = size return nil } }