From 5307da4794577d558871cdff908a0cdff03de9f2 Mon Sep 17 00:00:00 2001 From: Sophia Raye Date: Sat, 3 Jan 2026 13:45:07 +0300 Subject: [PATCH] docs(eth-wire): sync code examples with source (#20724) --- docs/crates/eth-wire.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/crates/eth-wire.md b/docs/crates/eth-wire.md index 67234118c8..01ef767981 100644 --- a/docs/crates/eth-wire.md +++ b/docs/crates/eth-wire.md @@ -323,7 +323,9 @@ The EthStream wraps a stream and handles eth message (RLP) encoding/decoding wit [File: crates/net/eth-wire/src/ethstream.rs](../../crates/net/eth-wire/src/ethstream.rs) ```rust,ignore #[pin_project] -pub struct EthStream { +pub struct EthStream { + /// Eth-specific logic + eth: EthStreamInner, #[pin] inner: S, } @@ -386,7 +388,7 @@ pub struct UnauthedP2PStream { impl UnauthedP2PStream { // ... - pub async fn handshake(mut self, hello: HelloMessageWithProtocols) -> Result<(P2PStream, HelloMessage), Error> { + pub async fn handshake(mut self, hello: HelloMessageWithProtocols) -> Result<(P2PStream, HelloMessage), P2PStreamError> { self.inner.send(alloy_rlp::encode(P2PMessage::Hello(hello.message())).into()).await?; let first_message_bytes = tokio::time::timeout(HANDSHAKE_TIMEOUT, self.inner.next()).await;