Skip to content

Commit d713290

Browse files
committed
removed useless test attributes
1 parent c424212 commit d713290

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

testnet/stacks-node/src/nakamoto_node/signer_coordinator.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -410,14 +410,11 @@ impl SignerCoordinator {
410410
"rejections_threshold" => self.total_weight.saturating_sub(self.weight_threshold));
411411
rejections_timer = Instant::now();
412412

413-
#[cfg(test)]
414-
{
415-
Counters::set(
416-
&counters.naka_miner_current_rejections_timeout_secs,
417-
rejections_timeout.as_secs(),
418-
);
419-
Counters::set(&counters.naka_miner_current_rejections, rejections);
420-
}
413+
Counters::set(
414+
&counters.naka_miner_current_rejections_timeout_secs,
415+
rejections_timeout.as_secs(),
416+
);
417+
Counters::set(&counters.naka_miner_current_rejections, rejections);
421418
}
422419

423420
if block_status

testnet/stacks-node/src/run_loop/neon.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ pub struct Counters {
117117
pub naka_signer_pushed_blocks: RunLoopCounter,
118118
pub naka_miner_directives: RunLoopCounter,
119119

120-
#[cfg(test)]
121120
pub naka_miner_current_rejections: RunLoopCounter,
122-
#[cfg(test)]
123121
pub naka_miner_current_rejections_timeout_secs: RunLoopCounter,
124122

125123
#[cfg(test)]
@@ -145,7 +143,7 @@ impl Counters {
145143
}
146144

147145
#[cfg(not(test))]
148-
fn set(_ctr: &RunLoopCounter, _value: u64) {}
146+
pub fn set(_ctr: &RunLoopCounter, _value: u64) {}
149147

150148
pub fn bump_blocks_processed(&self) {
151149
Counters::inc(&self.blocks_processed);

0 commit comments

Comments
 (0)