File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -406,11 +406,8 @@ impl SignerCoordinator {
406
406
"rejections_step" => rejections_step,
407
407
"rejections_threshold" => self . total_weight. saturating_sub( self . weight_threshold) ) ;
408
408
409
- Counters :: set (
410
- & counters. naka_miner_current_rejections_timeout_secs ,
411
- rejections_timeout. as_secs ( ) ,
412
- ) ;
413
- Counters :: set ( & counters. naka_miner_current_rejections , rejections) ;
409
+ counters. set_miner_current_rejections_timeout ( rejections_timeout. as_secs ( ) ) ;
410
+ counters. set_miner_current_rejections ( rejections) ;
414
411
}
415
412
416
413
if block_status
Original file line number Diff line number Diff line change @@ -139,12 +139,12 @@ impl Counters {
139
139
fn inc ( _ctr : & RunLoopCounter ) { }
140
140
141
141
#[ cfg( test) ]
142
- pub fn set ( ctr : & RunLoopCounter , value : u64 ) {
142
+ fn set ( ctr : & RunLoopCounter , value : u64 ) {
143
143
ctr. 0 . store ( value, Ordering :: SeqCst ) ;
144
144
}
145
145
146
146
#[ cfg( not( test) ) ]
147
- pub fn set ( _ctr : & RunLoopCounter , _value : u64 ) { }
147
+ fn set ( _ctr : & RunLoopCounter , _value : u64 ) { }
148
148
149
149
pub fn bump_blocks_processed ( & self ) {
150
150
Counters :: inc ( & self . blocks_processed ) ;
@@ -217,6 +217,14 @@ impl Counters {
217
217
pub fn set_microblocks_processed ( & self , value : u64 ) {
218
218
Counters :: set ( & self . microblocks_processed , value)
219
219
}
220
+
221
+ pub fn set_miner_current_rejections_timeout ( & self , value : u64 ) {
222
+ Counters :: set ( & self . naka_miner_current_rejections_timeout_secs , value)
223
+ }
224
+
225
+ pub fn set_miner_current_rejections ( & self , value : u64 ) {
226
+ Counters :: set ( & self . naka_miner_current_rejections , value)
227
+ }
220
228
}
221
229
222
230
/// Coordinating a node running in neon mode.
You can’t perform that action at this time.
0 commit comments