Skip to content

Commit

Permalink
Improve Stringer interface on acBalancerWrapper to allow human identi…
Browse files Browse the repository at this point in the history
…fication of which SubConn is used

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>
  • Loading branch information
AnomalRoil committed Apr 22, 2024
1 parent 1b86b6d commit 45c73d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion balancer_wrapper.go
Expand Up @@ -261,7 +261,7 @@ func (acbw *acBalancerWrapper) updateState(s connectivity.State, err error) {
}

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

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

0 comments on commit 45c73d2

Please sign in to comment.