Skip to content

Commit

Permalink
Remove solana-sdk from solana-udp-client (#3437)
Browse files Browse the repository at this point in the history
* remove solana-sdk from solana-udp-client

* fmt

* post-rebase fix
  • Loading branch information
kevinheavey authored Nov 7, 2024
1 parent c199872 commit 15b56c2
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 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.

3 changes: 2 additions & 1 deletion programs/sbf/Cargo.lock

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

6 changes: 5 additions & 1 deletion udp-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ edition = { workspace = true }
[dependencies]
async-trait = { workspace = true }
solana-connection-cache = { workspace = true }
solana-keypair = { workspace = true }
solana-net-utils = { workspace = true }
solana-sdk = { workspace = true }
solana-streamer = { workspace = true }
solana-transaction-error = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["full"] }

[dev-dependencies]
solana-packet = { workspace = true }
2 changes: 1 addition & 1 deletion udp-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use {
},
connection_cache_stats::ConnectionCacheStats,
},
solana_sdk::signature::Keypair,
solana_keypair::Keypair,
std::{
net::{IpAddr, Ipv4Addr, SocketAddr, UdpSocket},
sync::Arc,
Expand Down
7 changes: 3 additions & 4 deletions udp-client/src/nonblocking/udp_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
use {
async_trait::async_trait, core::iter::repeat,
solana_connection_cache::nonblocking::client_connection::ClientConnection,
solana_sdk::transport::Result as TransportResult,
solana_streamer::nonblocking::sendmmsg::batch_send, std::net::SocketAddr,
tokio::net::UdpSocket,
solana_streamer::nonblocking::sendmmsg::batch_send, solana_transaction_error::TransportResult,
std::net::SocketAddr, tokio::net::UdpSocket,
};

pub struct UdpClientConnection {
Expand Down Expand Up @@ -47,7 +46,7 @@ impl ClientConnection for UdpClientConnection {
mod tests {
use {
super::*,
solana_sdk::packet::{Packet, PACKET_DATA_SIZE},
solana_packet::{Packet, PACKET_DATA_SIZE},
solana_streamer::nonblocking::recvmmsg::recv_mmsg,
std::net::{IpAddr, Ipv4Addr},
tokio::net::UdpSocket,
Expand Down
2 changes: 1 addition & 1 deletion udp-client/src/udp_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
use {
core::iter::repeat,
solana_connection_cache::client_connection::ClientConnection,
solana_sdk::transport::Result as TransportResult,
solana_streamer::sendmmsg::batch_send,
solana_transaction_error::TransportResult,
std::{
net::{SocketAddr, UdpSocket},
sync::Arc,
Expand Down

0 comments on commit 15b56c2

Please sign in to comment.