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

Method clear

examples/txn_producer/main.go:225–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223}
224
225func (p *producerProvider) clear() {
226 p.producersLock.Lock()
227 defer p.producersLock.Unlock()
228
229 for _, producer := range p.producers {
230 producer.Close()
231 }
232 p.producers = p.producers[:0]
233}

Callers 1

mainFunction · 0.45

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected