(in map[string][]int32)
| 302 | } |
| 303 | |
| 304 | func 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 |
| 315 | type countingStrategy struct { |
no outgoing calls
no test coverage detected