()
| 171 | ) |
| 172 | |
| 173 | func (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 | |
| 181 | func (s topicPartitionOffsets) mapToRequest() map[string][]*PartitionOffsetMetadata { |
| 182 | result := make(map[string][]*PartitionOffsetMetadata, len(s)) |
no outgoing calls
no test coverage detected