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

Commit

Permalink
derefrences instead of clone
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadnouri committed Dec 6, 2023
1 parent f3dd069 commit 5854428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/shred_fetch_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl ShredFetchStage {
root_bank.slot(),
root_bank.get_slots_in_epoch(root_bank.epoch()),
root_bank.feature_set.clone(),
root_bank.epoch_schedule().clone(),
*root_bank.epoch_schedule(),
bank_forks_r.highest_slot(),
)
};
Expand All @@ -80,7 +80,7 @@ impl ShredFetchStage {
bank_forks_r.root_bank()
};
feature_set = root_bank.feature_set.clone();
epoch_schedule = root_bank.epoch_schedule().clone();
epoch_schedule = *root_bank.epoch_schedule();
last_root = root_bank.slot();
slots_per_epoch = root_bank.get_slots_in_epoch(root_bank.epoch());
keypair = repair_context
Expand Down

0 comments on commit 5854428

Please sign in to comment.