Skip to content

Commit

Permalink
remove solana-sdk from solana-connection-cache (#3436)
Browse files Browse the repository at this point in the history
* remove solana-sdk from solana-connection-cache

* post-rebase fix
  • Loading branch information
kevinheavey authored Nov 7, 2024
1 parent 966c3c8 commit c199872
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
4 changes: 3 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion connection-cache/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ indicatif = { workspace = true, optional = true }
log = { workspace = true }
rand = { workspace = true }
rayon = { workspace = true }
solana-keypair = { workspace = true }
solana-measure = { workspace = true }
solana-metrics = { workspace = true }
solana-sdk = { workspace = true }
solana-time-utils = { workspace = true }
solana-transaction-error = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["full"] }

Expand Down
2 changes: 1 addition & 1 deletion connection-cache/src/client_connection.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use {
solana_metrics::MovingStat,
solana_sdk::transport::Result as TransportResult,
solana_transaction_error::TransportResult,
std::{net::SocketAddr, sync::atomic::AtomicU64},
};

Expand Down
5 changes: 3 additions & 2 deletions connection-cache/src/connection_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ use {
indexmap::map::IndexMap,
log::*,
rand::{thread_rng, Rng},
solana_keypair::Keypair,
solana_measure::measure::Measure,
solana_sdk::{signature::Keypair, timing::AtomicInterval},
solana_time_utils::AtomicInterval,
std::{
net::SocketAddr,
sync::{atomic::Ordering, Arc, RwLock},
Expand Down Expand Up @@ -513,7 +514,7 @@ mod tests {
async_trait::async_trait,
rand::{Rng, SeedableRng},
rand_chacha::ChaChaRng,
solana_sdk::transport::Result as TransportResult,
solana_transaction_error::TransportResult,
std::{
net::{IpAddr, Ipv4Addr, SocketAddr, UdpSocket},
sync::Arc,
Expand Down
5 changes: 1 addition & 4 deletions connection-cache/src/nonblocking/client_connection.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
//! Trait defining async send functions, to be used for UDP or QUIC sending
use {
async_trait::async_trait, solana_sdk::transport::Result as TransportResult,
std::net::SocketAddr,
};
use {async_trait::async_trait, solana_transaction_error::TransportResult, std::net::SocketAddr};

#[async_trait]
pub trait ClientConnection {
Expand Down
4 changes: 3 additions & 1 deletion programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c199872

Please sign in to comment.