Skip to content

Commit

Permalink
resolve cargo check problems with tpu-client (#2913)
Browse files Browse the repository at this point in the history
resolve cargo check problems with tpu-client
  • Loading branch information
KirillLykov authored Sep 13, 2024
1 parent b4ed7a4 commit 8345322
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tpu-client/src/nonblocking/tpu_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ pub use crate::tpu_client::Result;
use {
crate::tpu_client::{RecentLeaderSlots, TpuClientConfig, MAX_FANOUT_SLOTS},
bincode::serialize,
futures_util::{
future::{join_all, FutureExt},
stream::StreamExt,
},
futures_util::{future::join_all, stream::StreamExt},
log::*,
solana_connection_cache::{
connection_cache::{
Expand Down Expand Up @@ -33,8 +30,6 @@ use {
},
std::{
collections::{HashMap, HashSet},
future::Future,
iter,
net::SocketAddr,
str::FromStr,
sync::{
Expand All @@ -51,10 +46,12 @@ use {
#[cfg(feature = "spinner")]
use {
crate::tpu_client::{SEND_TRANSACTION_INTERVAL, TRANSACTION_RESEND_INTERVAL},
futures_util::FutureExt,
indicatif::ProgressBar,
solana_rpc_client::spinner::{self, SendTransactionProgress},
solana_rpc_client_api::request::MAX_GET_SIGNATURE_STATUSES_QUERY_ITEMS,
solana_sdk::{message::Message, signers::Signers, transaction::TransactionError},
std::{future::Future, iter},
};

#[derive(Error, Debug)]
Expand Down Expand Up @@ -308,6 +305,7 @@ where
//
// Useful for end-users who don't need a persistent connection to each validator,
// and want to abort more quickly.
#[cfg(feature = "spinner")]
async fn timeout_future<Fut: Future<Output = TransportResult<()>>>(
timeout_duration: Duration,
future: Fut,
Expand All @@ -333,6 +331,7 @@ async fn sleep_and_set_message(
Ok(())
}

#[cfg(feature = "spinner")]
async fn sleep_and_send_wire_transaction_to_addr<P, M, C>(
sleep_duration: Duration,
connection_cache: &ConnectionCache<P, M, C>,
Expand Down

0 comments on commit 8345322

Please sign in to comment.