diff --git a/crates/net/eth-wire/src/ethstream.rs b/crates/net/eth-wire/src/ethstream.rs index c8945b056c..e7d5a523ce 100644 --- a/crates/net/eth-wire/src/ethstream.rs +++ b/crates/net/eth-wire/src/ethstream.rs @@ -130,6 +130,16 @@ impl EthStream { pub fn new(inner: S) -> Self { Self { inner } } + + /// Returns the underlying stream. + pub fn inner(&self) -> &S { + &self.inner + } + + /// Returns mutable access to the underlying stream. + pub fn inner_mut(&mut self) -> &mut S { + &mut self.inner + } } impl Stream for EthStream