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

Method mapToRequest

transaction_manager.go:173–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171)
172
173func (s topicPartitionSet) mapToRequest() map[string][]int32 {
174 result := make(map[string][]int32, len(s))
175 for tp := range s {
176 result[tp.topic] = append(result[tp.topic], tp.partition)
177 }
178 return result
179}
180
181func (s topicPartitionOffsets) mapToRequest() map[string][]*PartitionOffsetMetadata {
182 result := make(map[string][]*PartitionOffsetMetadata, len(s))

Callers 2

publishOffsetsToTxnMethod · 0.45
publishTxnPartitionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected