MCPcopy
hub / github.com/IBM/sarama / brokePartitioner

Struct brokePartitioner

mocks/async_producer_test.go:242–242  ·  view source on GitHub ↗

brokeProducer refuses to partition anything not on the “test” topic, and sends everything on that topic to partition 15.

Source from the content-addressed store, hash-verified

240// brokeProducer refuses to partition anything not on the “test” topic, and sends everything on
241// that topic to partition 15.
242type brokePartitioner struct{}
243
244func (brokePartitioner) Partition(msg *sarama.ProducerMessage, n int32) (int32, error) {
245 if msg.Topic == "test" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected