Skip to content

Commit

Permalink
chore: remove unused file muxdemux.rs (paradigmxyz#8287)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez authored May 16, 2024
1 parent aefcfff commit 0edf350
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 641 deletions.
10 changes: 1 addition & 9 deletions crates/net/eth-wire/src/errors/eth.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
//! Error handling for (`EthStream`)[crate::EthStream]

use crate::{
errors::{MuxDemuxError, P2PStreamError},
message::MessageError,
version::ParseVersionError,
DisconnectReason,
errors::P2PStreamError, message::MessageError, version::ParseVersionError, DisconnectReason,
};
use reth_primitives::{Chain, GotExpected, GotExpectedBoxed, ValidationError, B256};
use std::io;
Expand All @@ -16,9 +13,6 @@ pub enum EthStreamError {
/// Error of the underlying P2P connection.
P2PStreamError(#[from] P2PStreamError),
#[error(transparent)]
/// Error of the underlying de-/muxed P2P connection.
MuxDemuxError(#[from] MuxDemuxError),
#[error(transparent)]
/// Failed to parse peer's version.
ParseVersionError(#[from] ParseVersionError),
#[error(transparent)]
Expand Down Expand Up @@ -52,8 +46,6 @@ impl EthStreamError {
pub fn as_disconnected(&self) -> Option<DisconnectReason> {
if let EthStreamError::P2PStreamError(err) = self {
err.as_disconnected()
} else if let EthStreamError::MuxDemuxError(MuxDemuxError::P2PStreamError(err)) = self {
err.as_disconnected()
} else {
None
}
Expand Down
2 changes: 0 additions & 2 deletions crates/net/eth-wire/src/errors/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
//! Error types for stream variants

mod eth;
mod muxdemux;
mod p2p;

pub use eth::*;
pub use muxdemux::*;
pub use p2p::*;
47 changes: 0 additions & 47 deletions crates/net/eth-wire/src/errors/muxdemux.rs

This file was deleted.

2 changes: 0 additions & 2 deletions crates/net/eth-wire/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ pub mod errors;
mod ethstream;
mod hello;
pub mod multiplex;
pub mod muxdemux;
mod p2pstream;
mod pinger;
pub mod protocol;
Expand All @@ -39,7 +38,6 @@ pub use crate::{
disconnect::{CanDisconnect, DisconnectReason},
ethstream::{EthStream, UnauthedEthStream, MAX_MESSAGE_SIZE},
hello::{HelloMessage, HelloMessageBuilder, HelloMessageWithProtocols},
muxdemux::{MuxDemuxStream, StreamClone},
p2pstream::{
DisconnectP2P, P2PMessage, P2PMessageID, P2PStream, ProtocolVersion, UnauthedP2PStream,
MAX_RESERVED_MESSAGE_ID,
Expand Down
Loading

0 comments on commit 0edf350

Please sign in to comment.