File tree 1 file changed +8
-12
lines changed 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -106,13 +106,13 @@ func (sbc *subBalancerWrapper) startBalancer() {
106
106
}
107
107
}
108
108
109
- // exitIdle invokes the sub-balancer's ExitIdle method. Returns a true
110
- // indicating whether or not the operation was completed.
111
- func ( sbc * subBalancerWrapper ) exitIdle () ( complete bool ) {
112
- if b := sbc . balancer ; b ! = nil {
113
- b . ExitIdle ()
109
+ // exitIdle invokes the sub-balancer's ExitIdle method.
110
+ func ( sbc * subBalancerWrapper ) exitIdle () {
111
+ b := sbc . balancer
112
+ if b = = nil {
113
+ return
114
114
}
115
- return true
115
+ b . ExitIdle ()
116
116
}
117
117
118
118
func (sbc * subBalancerWrapper ) updateClientConnState (s balancer.ClientConnState ) error {
@@ -573,9 +573,7 @@ func (bg *BalancerGroup) ExitIdle() {
573
573
return
574
574
}
575
575
for _ , config := range bg .idToBalancerConfig {
576
- if ! config .exitIdle () {
577
- bg .connect (config )
578
- }
576
+ config .exitIdle ()
579
577
}
580
578
}
581
579
@@ -588,9 +586,7 @@ func (bg *BalancerGroup) ExitIdleOne(id string) {
588
586
return
589
587
}
590
588
if config := bg .idToBalancerConfig [id ]; config != nil {
591
- if ! config .exitIdle () {
592
- bg .connect (config )
593
- }
589
+ config .exitIdle ()
594
590
}
595
591
}
596
592
You can’t perform that action at this time.
0 commit comments