Skip to content

Commit

Permalink
Fix merge issues: Arc::clone and ConnectionCache construction (#31825)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored May 25, 2023
1 parent 89fd848 commit 5fde26f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions core/src/banking_stage/consume_worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ mod tests {
..
} = &test_frame;
let worker_thread = std::thread::spawn(move || worker.run());
poh_recorder.write().unwrap().set_bank(bank, false);
poh_recorder.write().unwrap().set_bank(bank.clone(), false);

let pubkey1 = Pubkey::new_unique();

Expand Down Expand Up @@ -329,7 +329,7 @@ mod tests {
..
} = &test_frame;
let worker_thread = std::thread::spawn(move || worker.run());
poh_recorder.write().unwrap().set_bank(bank, false);
poh_recorder.write().unwrap().set_bank(bank.clone(), false);

let pubkey1 = Pubkey::new_unique();
let pubkey2 = Pubkey::new_unique();
Expand Down Expand Up @@ -374,7 +374,7 @@ mod tests {
..
} = &test_frame;
let worker_thread = std::thread::spawn(move || worker.run());
poh_recorder.write().unwrap().set_bank(bank, false);
poh_recorder.write().unwrap().set_bank(bank.clone(), false);

let pubkey1 = Pubkey::new_unique();
let pubkey2 = Pubkey::new_unique();
Expand Down
3 changes: 2 additions & 1 deletion core/src/banking_stage/forward_worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ mod tests {
immutable_deserialized_packet::ImmutableDeserializedPacket,
},
crossbeam_channel::unbounded,
solana_client::connection_cache::ConnectionCache,
solana_ledger::{
blockstore::Blockstore, genesis_utils::GenesisConfigInfo,
get_tmp_ledger_path_auto_delete, leader_schedule_cache::LeaderScheduleCache,
Expand Down Expand Up @@ -157,7 +158,7 @@ mod tests {
poh_recorder,
bank_forks,
cluster_info,
Arc::default(),
Arc::new(ConnectionCache::new("test")),
Arc::default(),
);

Expand Down

0 comments on commit 5fde26f

Please sign in to comment.