Skip to content

Commit

Permalink
Revert "Improve Stringer interface on acBalancerWrapper to allow huma…
Browse files Browse the repository at this point in the history
…n identification of which SubConn is used"

This reverts commit 001f394.
  • Loading branch information
AnomalRoil committed Apr 24, 2024
1 parent cfa61fb commit 4ab12a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions balancer_wrapper.go
Expand Up @@ -261,9 +261,7 @@ func (acbw *acBalancerWrapper) updateState(s connectivity.State, err error) {
}

func (acbw *acBalancerWrapper) String() string {
acbw.ac.mu.Lock()
defer acbw.ac.mu.Unlock()
return fmt.Sprintf("SubConn(id:%d;addr:%s)", acbw.ac.channelz.ID, acbw.ac.curAddr.Addr)
return fmt.Sprintf("SubConn(id:%d)", acbw.ac.channelz.ID)
}

func (acbw *acBalancerWrapper) UpdateAddresses(addrs []resolver.Address) {
Expand Down

0 comments on commit 4ab12a3

Please sign in to comment.