|
|
@@ -16,7 +16,6 @@ use {
|
|
|
solana_streamer::streamer::StakedNodes,
|
|
|
solana_udp_client::{UdpConfig, UdpConnectionManager, UdpPool},
|
|
|
std::{
|
|
|
- error::Error,
|
|
|
net::{IpAddr, Ipv4Addr, SocketAddr},
|
|
|
sync::{Arc, RwLock},
|
|
|
},
|
|
|
@@ -110,29 +109,6 @@ impl ConnectionCache {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- #[deprecated(
|
|
|
- since = "1.15.0",
|
|
|
- note = "This method does not do anything. Please use `new_with_client_options` instead to set the client certificate."
|
|
|
- )]
|
|
|
- pub fn update_client_certificate(
|
|
|
- &mut self,
|
|
|
- _keypair: &Keypair,
|
|
|
- _ipaddr: IpAddr,
|
|
|
- ) -> Result<(), Box<dyn Error>> {
|
|
|
- Ok(())
|
|
|
- }
|
|
|
-
|
|
|
- #[deprecated(
|
|
|
- since = "1.15.0",
|
|
|
- note = "This method does not do anything. Please use `new_with_client_options` instead to set staked nodes information."
|
|
|
- )]
|
|
|
- pub fn set_staked_nodes(
|
|
|
- &mut self,
|
|
|
- _staked_nodes: &Arc<RwLock<StakedNodes>>,
|
|
|
- _client_pubkey: &Pubkey,
|
|
|
- ) {
|
|
|
- }
|
|
|
-
|
|
|
pub fn with_udp(name: &'static str, connection_pool_size: usize) -> Self {
|
|
|
// The minimum pool size is 1.
|
|
|
let connection_pool_size = 1.max(connection_pool_size);
|