Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit f5e13a1

Browse files
gregcusackwillhickey
authored andcommitted
deprecate get_client and get_multi_client (#177)
deprecate get_client and get_multi_client
1 parent 5611a73 commit f5e13a1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

dos/src/main.rs

Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 0 deletions
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)