Skip to content

Commit eef55e5

Browse files
committed
fix: remove unnecessary cfg macros
1 parent 3e12942 commit eef55e5

File tree

1 file changed

+2
-6
lines changed
  • stacks-signer/src/monitoring

1 file changed

+2
-6
lines changed

stacks-signer/src/monitoring/mod.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,9 @@ pub mod actions {
5050
}
5151

5252
/// Increment the block responses sent counter
53-
#[allow(unused_variables)]
5453
pub fn increment_block_responses_sent(accepted: bool) {
55-
#[cfg(feature = "monitoring_prom")]
56-
{
57-
let label_value = if accepted { "accepted" } else { "rejected" };
58-
BLOCK_RESPONSES_SENT.with_label_values(&[label_value]).inc();
59-
}
54+
let label_value = if accepted { "accepted" } else { "rejected" };
55+
BLOCK_RESPONSES_SENT.with_label_values(&[label_value]).inc();
6056
}
6157

6258
/// Increment the number of block proposals received

0 commit comments

Comments
 (0)