Skip to content

Commit d4ec442

Browse files
authored
Merge pull request #2 from tokongs/tobias/implement-balancer-1.74
Implement ExitIdle on the balancer
1 parent 19c9998 commit d4ec442

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎balancer.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,12 @@ func (b *ringBalancer) Close() {
383383
// No internal state to clean up and no need to call RemoveSubConn.
384384
}
385385

386+
func (b *ringBalancer) ExitIdle() {
387+
// No-op as we already reconnect SubConns on demand when they report
388+
// connectivity.Idle in UpdateSubConnState. This is here to satisfy
389+
// the balancer.Balancer interface >v1.74.0
390+
}
391+
386392
type picker struct {
387393
hashring *hashring.Ring
388394
spread uint8

0 commit comments

Comments
 (0)