Skip to content

Commit

Permalink
Use root_bank.slot() to update last_root to avoid unused variable
Browse files Browse the repository at this point in the history
This is more proper and was cleaned up in master, but doing minimal
cleanup to keep BP diff minimal.
  • Loading branch information
Steven Czabaniuk committed Sep 4, 2023
1 parent 5eda04b commit 208d80b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/shred_fetch_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl ShredFetchStage {

// In the case of bank_forks=None, setup to accept any slot range
let mut root_bank = bank_forks.read().unwrap().root_bank();
let mut last_root = 0;
let mut last_root = root_bank.slot();
let mut last_slot = std::u64::MAX;
let mut slots_per_epoch = 0;

Expand Down

0 comments on commit 208d80b

Please sign in to comment.