ExitIdleOne instructs the sub-balancer `id` to exit IDLE state, if appropriate and possible.
(id string)
| 585 | // ExitIdleOne instructs the sub-balancer `id` to exit IDLE state, if |
| 586 | // appropriate and possible. |
| 587 | func (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. |