Skip to content

Commit

Permalink
Update network/p2p/pubsubTracer.go
Browse files Browse the repository at this point in the history
Co-authored-by: cce <[email protected]>
  • Loading branch information
algorandskiy and cce authored Aug 20, 2024
1 parent 3eb13b0 commit 02b5eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/p2p/pubsubTracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (t pubsubTracer) SendRPC(rpc *pubsub.RPC, p peer.ID) {
for i := range rpc.Publish {
if rpc.Publish[i] != nil && rpc.Publish[i].Topic != nil && *rpc.Publish[i].Topic == TXTopicName {
transactionMessagesP2PSentMessages.Inc(nil)
transactionMessagesP2PSentBytes.AddUint64(uint64(len(rpc.Publish[0].Data)), nil)
transactionMessagesP2PSentBytes.AddUint64(uint64(len(rpc.Publish[i].Data)), nil)

Check warning on line 96 in network/p2p/pubsubTracer.go

View check run for this annotation

Codecov / codecov/patch

network/p2p/pubsubTracer.go#L91-L96

Added lines #L91 - L96 were not covered by tests
}
}
}
Expand Down

0 comments on commit 02b5eeb

Please sign in to comment.