Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
225
func
(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
main
Function · 0.45
Calls
1
Close
Method · 0.65
Tested by
no test coverage detected