@@ -315,7 +315,7 @@ where
315315
316316 /// For a given capability, obtain the full list of positive stake entries reversely ordered by their power.
317317 /// TODO: we may memoize the rank by keeping the last one in a non-serializable field in `Self` that keeps a boxed
318- /// iterator, so that this method doesn't have to sort multiple times if we are calling the `rank` method
318+ /// iterator, so that this method doesn't have to sort multiple times if we are calling the `rank` method
319319 /// several times in the same epoch.
320320 pub fn by_rank (
321321 & self ,
@@ -430,7 +430,7 @@ where
430430 let mut by_rank = self . by_rank ( Capability :: Mining , current_epoch) ;
431431
432432 // locate first entry whose validator matches the one searched for:
433- let winner_rank = by_rank. position ( move |( key, _) | key. validator == validator) ;
433+ let winner_rank = by_rank. position ( |( key, _) | key. validator == validator) ;
434434
435435 if let Some ( winner_rank) = winner_rank {
436436 let stakers: Vec < StakeKey < Address > > = by_rank
@@ -443,7 +443,7 @@ where
443443 let stake_entry = self . by_key . get_mut ( key) ;
444444 if let Some ( stake_entry) = stake_entry {
445445 let penalty_epochs = Epoch :: from ( ( 1 + winner_rank - index) as u32 ) ;
446- log:: debug!( "Delaying {} as block candidate during +{} epochs" , key, penalty_epochs) ;
446+ log:: debug!( "Disabling mining power of {} during +{} epochs" , key, penalty_epochs) ;
447447 stake_entry
448448 . value
449449 . write ( )
0 commit comments