Skip to content

Commit

Permalink
balancer/rls, xds/wrrlocality: stop forwarding UpdateSubConnState cal…
Browse files Browse the repository at this point in the history
…ls (#6532)
  • Loading branch information
dfawley authored Aug 10, 2023
1 parent ebc3c51 commit 4900699
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion balancer/rls/balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ func (b *rlsBalancer) ResolverError(err error) {
}

func (b *rlsBalancer) UpdateSubConnState(sc balancer.SubConn, state balancer.SubConnState) {
b.bg.UpdateSubConnState(sc, state)
b.logger.Errorf("UpdateSubConnState(%v, %+v) called unexpectedly", sc, state)
}

func (b *rlsBalancer) Close() {
Expand Down
4 changes: 2 additions & 2 deletions xds/internal/balancer/wrrlocality/balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ func (b *wrrLocalityBalancer) ResolverError(err error) {
b.child.ResolverError(err)
}

func (b *wrrLocalityBalancer) UpdateSubConnState(sc balancer.SubConn, scState balancer.SubConnState) {
b.child.UpdateSubConnState(sc, scState)
func (b *wrrLocalityBalancer) UpdateSubConnState(sc balancer.SubConn, state balancer.SubConnState) {
b.logger.Errorf("UpdateSubConnState(%v, %+v) called unexpectedly", sc, state)
}

func (b *wrrLocalityBalancer) Close() {
Expand Down

0 comments on commit 4900699

Please sign in to comment.