Skip to content

Commit

Permalink
rm unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
gregcusack committed Mar 2, 2024
1 parent eed1f9d commit 21e39ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
5 changes: 0 additions & 5 deletions gossip/src/gossip_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,9 @@ use {
solana_client::{
connection_cache::ConnectionCache,
rpc_client::RpcClient,
thin_client::ThinClient,
tpu_client::{TpuClient, TpuClientConfig, TpuClientWrapper},
},
solana_connection_cache::connection_cache::{
ConnectionManager, ConnectionPool, NewConnectionConfig,
},
solana_perf::recycler::Recycler,
solana_quic_client::{QuicConfig, QuicConnectionManager, QuicPool},
solana_runtime::bank_forks::BankForks,
solana_sdk::{
pubkey::Pubkey,
Expand Down
15 changes: 0 additions & 15 deletions gossip/src/legacy_contact_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,21 +229,6 @@ impl LegacyContactInfo {
pub fn is_valid_address(addr: &SocketAddr, socket_addr_space: &SocketAddrSpace) -> bool {
addr.port() != 0u16 && Self::is_valid_ip(addr.ip()) && socket_addr_space.check(addr)
}

pub(crate) fn valid_client_facing_addr(
&self,
protocol: Protocol,
socket_addr_space: &SocketAddrSpace,
) -> Option<(SocketAddr, SocketAddr)> {
Some((
self.rpc()
.ok()
.filter(|addr| socket_addr_space.check(addr))?,
self.tpu(protocol)
.ok()
.filter(|addr| socket_addr_space.check(addr))?,
))
}
}

impl TryFrom<&ContactInfo> for LegacyContactInfo {
Expand Down

0 comments on commit 21e39ec

Please sign in to comment.