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.

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>
  • Loading branch information
AnomalRoil committed Apr 24, 2024
1 parent edfd323 commit 985347e
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 985347e

Please sign in to comment.