diff --git a/crates/net/network/src/listener.rs b/crates/net/network/src/listener.rs index 9fcc15a10..2e07581f1 100644 --- a/crates/net/network/src/listener.rs +++ b/crates/net/network/src/listener.rs @@ -77,7 +77,8 @@ pub enum ListenerEvent { }, /// Encountered an error when accepting a connection. /// - /// This is non-fatal error as the listener continues to listen for new connections to accept. + /// This is a non-fatal error as the listener continues to listen for new connections to + /// accept. Error(io::Error), } diff --git a/crates/net/network/src/manager.rs b/crates/net/network/src/manager.rs index 071af5f17..71814ff9b 100644 --- a/crates/net/network/src/manager.rs +++ b/crates/net/network/src/manager.rs @@ -159,7 +159,7 @@ impl NetworkManager { } impl NetworkManager { - /// Sets the dedicated channel for events indented for the + /// Sets the dedicated channel for events intended for the /// [`TransactionsManager`](crate::transactions::TransactionsManager). pub fn with_transactions( mut self, @@ -169,21 +169,21 @@ impl NetworkManager { self } - /// Sets the dedicated channel for events indented for the + /// Sets the dedicated channel for events intended for the /// [`TransactionsManager`](crate::transactions::TransactionsManager). pub fn set_transactions(&mut self, tx: mpsc::UnboundedSender>) { self.to_transactions_manager = Some(UnboundedMeteredSender::new(tx, NETWORK_POOL_TRANSACTIONS_SCOPE)); } - /// Sets the dedicated channel for events indented for the + /// Sets the dedicated channel for events intended for the /// [`EthRequestHandler`](crate::eth_requests::EthRequestHandler). pub fn with_eth_request_handler(mut self, tx: mpsc::Sender>) -> Self { self.set_eth_request_handler(tx); self } - /// Sets the dedicated channel for events indented for the + /// Sets the dedicated channel for events intended for the /// [`EthRequestHandler`](crate::eth_requests::EthRequestHandler). pub fn set_eth_request_handler(&mut self, tx: mpsc::Sender>) { self.to_eth_request_handler = Some(tx); diff --git a/crates/net/network/tests/it/multiplex.rs b/crates/net/network/tests/it/multiplex.rs index ca35f24fa..5747d2027 100644 --- a/crates/net/network/tests/it/multiplex.rs +++ b/crates/net/network/tests/it/multiplex.rs @@ -46,7 +46,7 @@ mod proto { PongMessage(String), } - /// An protocol message, containing a message ID and payload. + /// A protocol message, containing a message ID and payload. #[derive(Clone, Debug, PartialEq, Eq)] pub struct PingPongProtoMessage { pub message_type: PingPongProtoMessageId, diff --git a/crates/net/network/tests/it/txgossip.rs b/crates/net/network/tests/it/txgossip.rs index c04bb3d90..30663c5ae 100644 --- a/crates/net/network/tests/it/txgossip.rs +++ b/crates/net/network/tests/it/txgossip.rs @@ -72,7 +72,7 @@ async fn test_4844_tx_gossip_penalization() { let mut gen = TransactionGenerator::new(thread_rng()); - // peer 0 will be penalised for sending txs[0] over gossip + // peer 0 will be penalized for sending txs[0] over gossip let txs = vec![gen.gen_eip4844_pooled(), gen.gen_eip1559_pooled()]; for tx in &txs { diff --git a/crates/net/peers/src/node_record.rs b/crates/net/peers/src/node_record.rs index 15ef5ad85..6cf91cb9e 100644 --- a/crates/net/peers/src/node_record.rs +++ b/crates/net/peers/src/node_record.rs @@ -18,7 +18,7 @@ use serde_with::{DeserializeFromStr, SerializeDisplay}; #[cfg(feature = "secp256k1")] use enr::Enr; -/// Represents a ENR in discovery. +/// Represents an ENR in discovery. /// /// Note: this is only an excerpt of the [`NodeRecord`] data structure. #[derive(