deprecate `get_client` and `get_multi_client` (#177)

deprecate get_client and get_multi_client
This commit is contained in:
Greg Cusack 2024-03-11 13:13:56 -04:00 committed by GitHub
parent 0e12172ddd
commit 00c984fe4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,7 @@
//! ```
//!
#![allow(clippy::arithmetic_side_effects)]
#![allow(deprecated)]
use {
crossbeam_channel::{select, tick, unbounded, Receiver, Sender},
itertools::Itertools,

View File

@ -194,6 +194,7 @@ pub fn discover(
}
/// Creates a ThinClient by selecting a valid node at random
#[deprecated(since = "1.18.0", note = "Interface will change")]
pub fn get_client(
nodes: &[ContactInfo],
socket_addr_space: &SocketAddrSpace,
@ -209,6 +210,7 @@ pub fn get_client(
ThinClient::new(rpc, tpu, connection_cache)
}
#[deprecated(since = "1.18.0", note = "Will be removed in favor of get_client")]
pub fn get_multi_client(
nodes: &[ContactInfo],
socket_addr_space: &SocketAddrSpace,