Skip to content

Commit

Permalink
fix: properly iterate in tracing for protocol messenger
Browse files Browse the repository at this point in the history
MB Copy Paste Typo,

This caused panics while tracing.
  • Loading branch information
Jorropo committed Sep 4, 2023
1 parent 0c90569 commit 134f7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pb/protocol_messenger.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (pm *ProtocolMessenger) GetProviders(ctx context.Context, p peer.ID, key mu
provsStr[i] = v.String()
}
closerPeersStr := make([]string, len(provs))
for i, v := range closerPeers {
for i, v := range provs {
closerPeersStr[i] = v.String()
}
span.SetAttributes(attribute.StringSlice("provs", provsStr), attribute.StringSlice("closestPeers", closerPeersStr))
Expand Down

0 comments on commit 134f7e4

Please sign in to comment.