Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 4e7f9ce

Browse files
committed
nits
1 parent 3141b4b commit 4e7f9ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

turbine/src/broadcast_stage/broadcast_duplicates_run.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ impl BroadcastRun for BroadcastDuplicatesRun {
295295
let cluster_partition: HashSet<Pubkey> = {
296296
match &self.config.partition {
297297
ClusterPartition::Stake(partition_total_stake) => {
298-
let mut cumilative_stake = 0;
298+
let mut cumulative_stake = 0;
299299
let epoch = root_bank.get_leader_schedule_epoch(slot);
300300
root_bank
301301
.epoch_staked_nodes(epoch)
@@ -304,8 +304,8 @@ impl BroadcastRun for BroadcastDuplicatesRun {
304304
.filter(|(pubkey, _)| **pubkey != self_pubkey)
305305
.sorted_by_key(|(pubkey, stake)| (**stake, **pubkey))
306306
.take_while(|(_, stake)| {
307-
cumilative_stake += *stake;
308-
cumilative_stake <= *partition_total_stake
307+
cumulative_stake += *stake;
308+
cumulative_stake <= *partition_total_stake
309309
})
310310
.map(|(pubkey, _)| *pubkey)
311311
.collect()

0 commit comments

Comments
 (0)