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.
()
| 572 | // It will trigger this on all sub-balancers, or reconnect their subconns if |
| 573 | // not supported. |
| 574 | func (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. |