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

Method AddSet

produce_request.go:308–311  ·  view source on GitHub ↗
(topic string, partition int32, set *MessageSet)

Source from the content-addressed store, hash-verified

306}
307
308func (r *ProduceRequest) AddSet(topic string, partition int32, set *MessageSet) {
309 r.ensureRecords(topic, partition)
310 r.records[topic][partition] = newLegacyRecords(set)
311}
312
313func (r *ProduceRequest) AddBatch(topic string, partition int32, batch *RecordBatch) {
314 r.ensureRecords(topic, partition)

Callers 1

buildRequestMethod · 0.95

Calls 2

ensureRecordsMethod · 0.95
newLegacyRecordsFunction · 0.85

Tested by

no test coverage detected