Skip to content

Commit

Permalink
[roundrobin_strips_attributes] c0
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl committed Nov 11, 2020
1 parent e0b3d58 commit ea68d72
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions balancer/base/balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,11 @@ func (b *baseBalancer) UpdateClientConnState(s balancer.ClientConnState) error {
sc.Connect()
} else {
// Always update the subconn's address in case the attributes
// changed. This is a noop if the current address is the same as the
// old one (reflect.DeepEqual).
// changed.
//
// The SubConn does a reflect.DeepEqual of the new and old
// addresses. So this is a noop if the current address is the same
// as the old one (including attributes).
//
// TODO: delete this when this balancer reads attributes.
sc.UpdateAddresses([]resolver.Address{a})
Expand Down

0 comments on commit ea68d72

Please sign in to comment.