Skip to content

Commit

Permalink
fix: remove unnecessary cfg macros
Browse files Browse the repository at this point in the history
  • Loading branch information
hstove committed Jan 17, 2025
1 parent 3e12942 commit eef55e5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions stacks-signer/src/monitoring/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,9 @@ pub mod actions {
}

/// Increment the block responses sent counter
#[allow(unused_variables)]
pub fn increment_block_responses_sent(accepted: bool) {
#[cfg(feature = "monitoring_prom")]
{
let label_value = if accepted { "accepted" } else { "rejected" };
BLOCK_RESPONSES_SENT.with_label_values(&[label_value]).inc();
}
let label_value = if accepted { "accepted" } else { "rejected" };
BLOCK_RESPONSES_SENT.with_label_values(&[label_value]).inc();
}

/// Increment the number of block proposals received
Expand Down

0 comments on commit eef55e5

Please sign in to comment.