MCPcopy
hub / github.com/grpc/grpc-go / closeProducers

Method closeProducers

balancer_wrapper.go:422–430  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

420}
421
422func (acbw *acBalancerWrapper) closeProducers() {
423 acbw.producersMu.Lock()
424 defer acbw.producersMu.Unlock()
425 for pb, pData := range acbw.producers {
426 pData.refs = 0
427 pData.close()
428 delete(acbw.producers, pb)
429 }
430}
431
432// healthProducerRegisterFn is a type alias for the health producer's function
433// for registering listeners.

Callers 2

updateStateMethod · 0.95
ShutdownMethod · 0.95

Calls 3

LockMethod · 0.45
UnlockMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected