Skip to content

Commit 15328bf

Browse files
gregcusackmergify[bot]
authored andcommitted
deprecate get_client and get_multi_client (solana-labs#177)
deprecate get_client and get_multi_client (cherry picked from commit 00c984f)
1 parent 1f79867 commit 15328bf

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
@@ -193,6 +193,7 @@ pub fn discover(
193193
}
194194

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

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

0 commit comments

Comments
 (0)