Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Nov 18, 2020
1 parent 4b0a3f8 commit c18f84a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ impl Bank {

fn rewrite_stakes(&self) -> (usize, usize) {
let mut examined_count = 0;
let mut rewriteen_count = 0;
let mut rewritten_count = 0;
self.cloned_stake_delegations()
.into_iter()
.for_each(|(stake_pubkey, _delegation)| {
Expand All @@ -1339,19 +1339,19 @@ impl Bank {
let message = format!("rewrote stake: {}, {:?}", stake_pubkey, result);
info!("{}", message);
datapoint_info!("stake_info", ("info", message, String));
rewriteen_count += 1;
rewritten_count += 1;
}
}
});

info!(
"bank (slot: {}): rewrite_stakes: {} accounts rewritten / {} accounts examined",
self.slot(),
rewriteen_count,
rewritten_count,
examined_count,
);

(examined_count, rewriteen_count)
(examined_count, rewritten_count)
}

// update rewards based on the previous epoch
Expand Down

0 comments on commit c18f84a

Please sign in to comment.