Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
pinges committed Jan 2, 2024
1 parent add4eac commit 2bcf1cc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ final class DeFramer extends ByteToMessageDecoder {
"code");
this.discPeerRecoveryCounter =
metricsSystem.createLabelledCounter(
BesuMetricCategory.PEERS, "discovery-peer-recovery", "discovery-peer-recovery", "name");
BesuMetricCategory.PEERS, "discovery_peer_recovery", "discovery_peer_recovery", "name");
}

@Override
Expand Down Expand Up @@ -157,12 +157,12 @@ protected void decode(final ChannelHandlerContext ctx, final ByteBuf in, final L
if (discoveryPeer.isPresent()) {
peer = Optional.of(discoveryPeer.get());
if (peer.get().getForkId().isPresent()) {
discPeerRecoveryCounter.labels("disc-peer-found-with-forkId").inc();
discPeerRecoveryCounter.labels("discovery-peer-found-with-forkId").inc();
} else {
discPeerRecoveryCounter.labels("disc-peer-found--without-forkId").inc();
discPeerRecoveryCounter.labels("discovery-peer-found-without-forkId").inc();
}
} else {
discPeerRecoveryCounter.labels("disc-peer-not-found").inc();
discPeerRecoveryCounter.labels("discovery-peer-not-found").inc();
}
}

Expand Down

0 comments on commit 2bcf1cc

Please sign in to comment.