Skip to content

Commit 1f3917a

Browse files
mergify[bot]gregcusack
authored andcommitted
v1.18: deprecate get_client and get_multi_client (backport of anza-xyz#177) (anza-xyz#182)
* deprecate `get_client` and `get_multi_client` (anza-xyz#177) deprecate get_client and get_multi_client (cherry picked from commit 00c984f) * bump deprecated version numbers --------- Co-authored-by: Greg Cusack <[email protected]>
1 parent 1f1fda4 commit 1f3917a

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

bench-tps/src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![allow(clippy::arithmetic_side_effects)]
2+
#![allow(deprecated)]
23
use {
34
clap::value_t,
45
log::*,

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.6", 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.6", 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)