Skip to content

Commit

Permalink
pass CC by value in some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillLykov committed Nov 4, 2024
1 parent 95811e9 commit 213aa75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions rpc/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6486,7 +6486,7 @@ pub mod tests {
&bank_forks,
None,
receiver,
&connection_cache,
connection_cache,
1000,
1,
exit,
Expand Down Expand Up @@ -6760,7 +6760,7 @@ pub mod tests {
&bank_forks,
None,
receiver,
&connection_cache,
connection_cache,
1000,
1,
exit,
Expand Down
7 changes: 2 additions & 5 deletions send-transaction-service/src/transaction_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ where
}
}

fn get_tpu_addresses_with_slots<'a>(
&'a self,
leader_info: Option<&'a T>,
) -> Vec<&'a SocketAddr> {
fn get_tpu_addresses<'a>(&'a self, leader_info: Option<&'a T>) -> Vec<&'a SocketAddr> {
leader_info
.map(|leader_info| {
leader_info
Expand Down Expand Up @@ -118,7 +115,7 @@ where
.unwrap_or_default();
let mut leader_info_provider = self.leader_info_provider.lock().unwrap();
let leader_info = leader_info_provider.get_leader_info();
let leader_addresses = self.get_tpu_addresses_with_slots(leader_info);
let leader_addresses = self.get_tpu_addresses(leader_info);
addresses.extend(leader_addresses);

for address in &addresses {
Expand Down

0 comments on commit 213aa75

Please sign in to comment.