diff --git a/crates/net/network/src/session/active.rs b/crates/net/network/src/session/active.rs index 76701f7e2..af9bb2f08 100644 --- a/crates/net/network/src/session/active.rs +++ b/crates/net/network/src/session/active.rs @@ -839,7 +839,7 @@ mod tests { f: F, ) -> Pin + Send>> where - F: FnOnce(EthStream>>) -> O + Send + 'static, + F: FnOnce(EthStream>, N>) -> O + Send + 'static, O: Future + Send + Sync, { let status = self.status; diff --git a/examples/manual-p2p/src/main.rs b/examples/manual-p2p/src/main.rs index 79a2ff26a..15b14d98e 100644 --- a/examples/manual-p2p/src/main.rs +++ b/examples/manual-p2p/src/main.rs @@ -16,7 +16,7 @@ use reth_ecies::stream::ECIESStream; use reth_eth_wire::{ EthMessage, EthStream, HelloMessage, P2PStream, Status, UnauthedEthStream, UnauthedP2PStream, }; -use reth_network::config::rng_secret_key; +use reth_network::{config::rng_secret_key, EthNetworkPrimitives}; use reth_network_peers::{mainnet_nodes, pk2id, NodeRecord}; use reth_primitives::{EthereumHardfork, Head}; use secp256k1::{SecretKey, SECP256K1}; @@ -24,7 +24,7 @@ use std::sync::LazyLock; use tokio::net::TcpStream; type AuthedP2PStream = P2PStream>; -type AuthedEthStream = EthStream>>; +type AuthedEthStream = EthStream>, EthNetworkPrimitives>; pub static MAINNET_BOOT_NODES: LazyLock> = LazyLock::new(mainnet_nodes);