(topic string, partition int32)
| 284 | } |
| 285 | |
| 286 | func (r *ProduceRequest) ensureRecords(topic string, partition int32) { |
| 287 | if r.records == nil { |
| 288 | r.records = make(map[string]map[int32]Records) |
| 289 | } |
| 290 | |
| 291 | if r.records[topic] == nil { |
| 292 | r.records[topic] = make(map[int32]Records) |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | func (r *ProduceRequest) AddMessage(topic string, partition int32, msg *Message) { |
| 297 | r.ensureRecords(topic, partition) |
no outgoing calls
no test coverage detected