MCPcopy Create free account
hub / github.com/IBM/sarama / cloneAssignment

Function cloneAssignment

functional_consumer_group_java_interop_test.go:304–312  ·  view source on GitHub ↗
(in map[string][]int32)

Source from the content-addressed store, hash-verified

302}
303
304func cloneAssignment(in map[string][]int32) map[string][]int32 {
305 out := make(map[string][]int32, len(in))
306 for topic, partitions := range in {
307 sorted := slices.Clone(partitions)
308 slices.Sort(sorted)
309 out[topic] = sorted
310 }
311 return out
312}
313
314// countingStrategy records whether Sarama led a rebalance
315type countingStrategy struct {

Callers 2

OwnedMethod · 0.85
RevokedPartitionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected