From 37d1014cddde533bd2f1dfe350abf8e3eef6d741 Mon Sep 17 00:00:00 2001 From: Soubhik Singha Mahapatra <160333583+Soubhik-10@users.noreply.github.com> Date: Thu, 10 Apr 2025 11:04:11 +0530 Subject: [PATCH] chore: changed imports in network-proxy (examples) (#15644) --- Cargo.lock | 3 +-- examples/network-proxy/Cargo.toml | 3 +-- examples/network-proxy/src/main.rs | 20 +++++++++++--------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a2dbed68bd..ca3f8925e1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3532,8 +3532,7 @@ version = "0.0.0" dependencies = [ "eyre", "futures", - "reth-chainspec", - "reth-network", + "reth-ethereum", "reth-tracing", "tokio", ] diff --git a/examples/network-proxy/Cargo.toml b/examples/network-proxy/Cargo.toml index d596a6cee1..2aac5c99a6 100644 --- a/examples/network-proxy/Cargo.toml +++ b/examples/network-proxy/Cargo.toml @@ -6,8 +6,7 @@ edition.workspace = true license.workspace = true [dependencies] -reth-network.workspace = true -reth-chainspec.workspace = true +reth-ethereum = { workspace = true, features = ["network"] } reth-tracing.workspace = true futures.workspace = true tokio.workspace = true diff --git a/examples/network-proxy/src/main.rs b/examples/network-proxy/src/main.rs index a43360a6f1..924552d483 100644 --- a/examples/network-proxy/src/main.rs +++ b/examples/network-proxy/src/main.rs @@ -13,15 +13,17 @@ #![warn(unused_crate_dependencies)] use futures::StreamExt; -use reth_chainspec::DEV; -use reth_network::{ - config::rng_secret_key, - eth_requests::IncomingEthRequest, - p2p::HeadersClient, - transactions::NetworkTransactionEvent, - types::{BlockHashOrNumber, NewPooledTransactionHashes68}, - BlockDownloaderProvider, FetchClient, NetworkConfig, NetworkEventListenerProvider, - NetworkHandle, NetworkInfo, NetworkManager, Peers, +use reth_ethereum::{ + chainspec::DEV, + network::{ + config::rng_secret_key, + eth_requests::IncomingEthRequest, + p2p::HeadersClient, + transactions::NetworkTransactionEvent, + types::{BlockHashOrNumber, NewPooledTransactionHashes68}, + BlockDownloaderProvider, FetchClient, NetworkConfig, NetworkEventListenerProvider, + NetworkHandle, NetworkInfo, NetworkManager, Peers, + }, }; #[tokio::main]