Skip to content

Commit 00c984f

Browse files
authored
deprecate get_client and get_multi_client (solana-labs#177)
deprecate get_client and get_multi_client
1 parent 0e12172 commit 00c984f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

dos/src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
//! ```
4040
//!
4141
#![allow(clippy::arithmetic_side_effects)]
42+
#![allow(deprecated)]
4243
use {
4344
crossbeam_channel::{select, tick, unbounded, Receiver, Sender},
4445
itertools::Itertools,

gossip/src/gossip_service.rs

+2
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ pub fn discover(
194194
}
195195

196196
/// Creates a ThinClient by selecting a valid node at random
197+
#[deprecated(since = "1.18.0", note = "Interface will change")]
197198
pub fn get_client(
198199
nodes: &[ContactInfo],
199200
socket_addr_space: &SocketAddrSpace,
@@ -209,6 +210,7 @@ pub fn get_client(
209210
ThinClient::new(rpc, tpu, connection_cache)
210211
}
211212

213+
#[deprecated(since = "1.18.0", note = "Will be removed in favor of get_client")]
212214
pub fn get_multi_client(
213215
nodes: &[ContactInfo],
214216
socket_addr_space: &SocketAddrSpace,

0 commit comments

Comments
 (0)