Skip to content

Commit

Permalink
Keep b.state and state rerported to clientconn in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
arjan-bal committed Sep 2, 2024
1 parent 4a221d1 commit 08e8cb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions balancer/pickfirstleaf/pickfirstleaf.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ func (b *pickfirstBalancer) updateSubConnState(sd *scData, state balancer.SubCon
// it's READY. See A62.
// If the balancer is already in CONNECTING, no update is needed.
if b.state == connectivity.Idle {
b.state = connectivity.Connecting
b.cc.UpdateState(balancer.State{
ConnectivityState: connectivity.Connecting,
Picker: &picker{err: balancer.ErrNoSubConnAvailable},
Expand Down

0 comments on commit 08e8cb9

Please sign in to comment.