Skip to content

Commit

Permalink
deprecate get_client and get_multi_client (#177)
Browse files Browse the repository at this point in the history
deprecate get_client and get_multi_client

(cherry picked from commit 00c984f)
  • Loading branch information
gregcusack authored and mergify[bot] committed Mar 11, 2024
1 parent 1f79867 commit 15328bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions dos/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
//! ```
//!
#![allow(clippy::arithmetic_side_effects)]
#![allow(deprecated)]
use {
crossbeam_channel::{select, tick, unbounded, Receiver, Sender},
itertools::Itertools,
Expand Down
2 changes: 2 additions & 0 deletions gossip/src/gossip_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,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,
Expand All @@ -208,6 +209,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,
Expand Down

0 comments on commit 15328bf

Please sign in to comment.