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

Method ExitIdleOne

internal/balancergroup/balancergroup.go:587–596  ·  view source on GitHub ↗

ExitIdleOne instructs the sub-balancer `id` to exit IDLE state, if appropriate and possible.

(id string)

Source from the content-addressed store, hash-verified

585// ExitIdleOne instructs the sub-balancer `id` to exit IDLE state, if
586// appropriate and possible.
587func (bg *BalancerGroup) ExitIdleOne(id string) {
588 bg.outgoingMu.Lock()
589 defer bg.outgoingMu.Unlock()
590 if bg.outgoingClosed {
591 return
592 }
593 if config := bg.idToBalancerConfig[id]; config != nil {
594 config.exitIdle()
595 }
596}
597
598// ParseConfig parses a child config list and returns a LB config for the
599// gracefulswitch Balancer.

Callers

nothing calls this directly

Calls 3

LockMethod · 0.45
UnlockMethod · 0.45
exitIdleMethod · 0.45

Tested by

no test coverage detected