Skip to content

Commit

Permalink
chore: use peer.String()
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Jan 29, 2024
1 parent f59c2a1 commit dfe8ff5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/net/exchange/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func (c *client) sendRequestToPeer(ctx context.Context, peer peer.ID, req *excha
defer span.End()
if span.IsRecordingEvents() {
span.AddAttributes(
trace.StringAttribute("peer", peer.Pretty()),
trace.StringAttribute("peer", peer.String()),
)
}
defer func() {
Expand Down
2 changes: 1 addition & 1 deletion venus-component/libp2p/exchange/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func (c *client) sendRequestToPeer(ctx context.Context, peer peer.ID, req *excha
defer span.End()
if span.IsRecordingEvents() {
span.AddAttributes(
trace.StringAttribute("peer", peer.Pretty()),
trace.StringAttribute("peer", peer.String()),
)
}
defer func() {
Expand Down

0 comments on commit dfe8ff5

Please sign in to comment.