Skip to content

Commit

Permalink
Ignore stats recording errors
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sztandera <[email protected]>
  • Loading branch information
Kubuxu committed Aug 16, 2024
1 parent 942b567 commit 0aa4f11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/modules/lp2p/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (mbr *metricBandwithReporter) LogSentMessageStream(bytes int64, proto proto
if len(proto) == 0 {
proto = "unknown"
}
stats.RecordWithTags(context.TODO(), []tag.Mutator{
_ = stats.RecordWithTags(context.TODO(), []tag.Mutator{
tag.Upsert(lmetrics.Direction, "outbound"),
tag.Upsert(lmetrics.ProtocolID, string(proto))},
lmetrics.Libp2pTrafficBytes.M(bytes))
Expand All @@ -67,7 +67,7 @@ func (mbr *metricBandwithReporter) LogRecvMessageStream(bytes int64, proto proto
if len(proto) == 0 {
proto = "unknown"
}
stats.RecordWithTags(context.TODO(), []tag.Mutator{
_ = stats.RecordWithTags(context.TODO(), []tag.Mutator{
tag.Upsert(lmetrics.Direction, "inbound"),
tag.Upsert(lmetrics.ProtocolID, string(proto))},
lmetrics.Libp2pTrafficBytes.M(bytes))
Expand Down

0 comments on commit 0aa4f11

Please sign in to comment.