Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
godmodegalactus committed Jan 12, 2024
1 parent 1923cb9 commit 1acc71d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stake_vote/src/leader_schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,7 @@ pub fn calculate_leader_schedule(
})
.into_grouping_map()
.aggregate(|acc, _node_pubkey, stake| Some(acc.unwrap_or_default() + stake));
let mut stakes: Vec<(Pubkey, u64)> = stakes_map
.into_iter()
.collect();
let mut stakes: Vec<(Pubkey, u64)> = stakes_map.into_iter().collect();

let mut seed = [0u8; 32];
seed[0..8].copy_from_slice(&epoch.to_le_bytes());
Expand Down

0 comments on commit 1acc71d

Please sign in to comment.