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

Function newSyncProducerFromAsyncProducer

sync_producer.go:108–116  ·  view source on GitHub ↗
(p *asyncProducer)

Source from the content-addressed store, hash-verified

106}
107
108func newSyncProducerFromAsyncProducer(p *asyncProducer) *syncProducer {
109 sp := &syncProducer{producer: p}
110
111 sp.wg.Add(2)
112 go withRecover(sp.handleSuccesses)
113 go withRecover(sp.handleErrors)
114
115 return sp
116}
117
118func verifyProducerConfig(config *Config) error {
119 if !config.Producer.Return.Errors {

Callers 2

NewSyncProducerFunction · 0.85

Calls 2

withRecoverFunction · 0.85
AddMethod · 0.45

Tested by

no test coverage detected