Skip to content

Commit ab90977

Browse files
wjywbslyuxuan
authored andcommitted
Fix using grpc.WithBalancerName("grpclb") explicitly (#2778) (#2802)
1 parent a0be99a commit ab90977

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clientconn.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ func (cc *ClientConn) updateResolverState(s resolver.State) error {
603603
} else if cc.balancerWrapper == nil {
604604
// Balancer dial option was set, and this is the first time handling
605605
// resolved addresses. Build a balancer with dopts.balancerBuilder.
606+
cc.curBalancerName = cc.dopts.balancerBuilder.Name()
606607
cc.balancerWrapper = newCCBalancerWrapper(cc, cc.dopts.balancerBuilder, cc.balancerBuildOpts)
607608
}
608609

0 commit comments

Comments
 (0)