File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -410,14 +410,11 @@ impl SignerCoordinator {
410
410
"rejections_threshold" => self . total_weight. saturating_sub( self . weight_threshold) ) ;
411
411
rejections_timer = Instant :: now ( ) ;
412
412
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) ;
421
418
}
422
419
423
420
if block_status
Original file line number Diff line number Diff line change @@ -117,9 +117,7 @@ pub struct Counters {
117
117
pub naka_signer_pushed_blocks : RunLoopCounter ,
118
118
pub naka_miner_directives : RunLoopCounter ,
119
119
120
- #[ cfg( test) ]
121
120
pub naka_miner_current_rejections : RunLoopCounter ,
122
- #[ cfg( test) ]
123
121
pub naka_miner_current_rejections_timeout_secs : RunLoopCounter ,
124
122
125
123
#[ cfg( test) ]
@@ -145,7 +143,7 @@ impl Counters {
145
143
}
146
144
147
145
#[ cfg( not( test) ) ]
148
- fn set ( _ctr : & RunLoopCounter , _value : u64 ) { }
146
+ pub fn set ( _ctr : & RunLoopCounter , _value : u64 ) { }
149
147
150
148
pub fn bump_blocks_processed ( & self ) {
151
149
Counters :: inc ( & self . blocks_processed ) ;
You can’t perform that action at this time.
0 commit comments