Skip to content

Commit

Permalink
Remove EpochSchedule Copy (#5329)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored Sep 25, 2023
1 parent 57400cb commit cf2885e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions token/program-2022-test/tests/transfer_fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,14 @@ async fn set_fee() {
.unwrap();

// warp to first normal slot to easily calculate epochs
let epoch_schedule = context.context.lock().await.genesis_config().epoch_schedule;
let first_normal_slot = epoch_schedule.first_normal_slot;
let slots_per_epoch = epoch_schedule.slots_per_epoch;
let (first_normal_slot, slots_per_epoch) = {
let context = context.context.lock().await;
(
context.genesis_config().epoch_schedule.first_normal_slot,
context.genesis_config().epoch_schedule.slots_per_epoch,
)
};

context
.context
.lock()
Expand Down

0 comments on commit cf2885e

Please sign in to comment.