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

Method ExitIdle

internal/balancergroup/balancergroup.go:574–583  ·  view source on GitHub ↗

ExitIdle should be invoked when the parent LB policy's ExitIdle is invoked. It will trigger this on all sub-balancers, or reconnect their subconns if not supported.

()

Source from the content-addressed store, hash-verified

572// It will trigger this on all sub-balancers, or reconnect their subconns if
573// not supported.
574func (bg *BalancerGroup) ExitIdle() {
575 bg.outgoingMu.Lock()
576 defer bg.outgoingMu.Unlock()
577 if bg.outgoingClosed {
578 return
579 }
580 for _, config := range bg.idToBalancerConfig {
581 config.exitIdle()
582 }
583}
584
585// ExitIdleOne instructs the sub-balancer `id` to exit IDLE state, if
586// appropriate and possible.

Callers

nothing calls this directly

Calls 3

LockMethod · 0.45
UnlockMethod · 0.45
exitIdleMethod · 0.45

Tested by

no test coverage detected