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

Method abandonBrokerConnection

async_producer.go:1770–1780  ·  view source on GitHub ↗
(broker *Broker)

Source from the content-addressed store, hash-verified

1768}
1769
1770func (p *asyncProducer) abandonBrokerConnection(broker *Broker) {
1771 p.brokerLock.Lock()
1772 defer p.brokerLock.Unlock()
1773
1774 bc, ok := p.brokers[broker]
1775 if ok && bc.abandoned != nil {
1776 close(bc.abandoned)
1777 }
1778
1779 delete(p.brokers, broker)
1780}

Callers 2

handleSuccessMethod · 0.80
handleErrorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected