From a3717d6bc14b9e79224c15ee40587cfee48a5d09 Mon Sep 17 00:00:00 2001 From: Jennifer Zelo Date: Thu, 4 Sep 2025 14:51:34 +0200 Subject: [PATCH] docs: fix typos (#386) --- node/network/src/behaviour/mod.rs | 4 ++-- node/router/src/service.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/node/network/src/behaviour/mod.rs b/node/network/src/behaviour/mod.rs index 58a49a6..2685881 100644 --- a/node/network/src/behaviour/mod.rs +++ b/node/network/src/behaviour/mod.rs @@ -1017,8 +1017,8 @@ impl std::convert::From for OutboundRequest { /// The type of RPC responses the Behaviour informs it has received, and allows for sending. /// // NOTE: This is an application-level wrapper over the lower network level responses that can be -// sent. The main difference is the absense of Pong and Metadata, which don't leave the -// Behaviour. For all protocol reponses managed by RPC see `RPCResponse` and +// sent. The main difference is the absence of Pong and Metadata, which don't leave the +// Behaviour. For all protocol responses managed by RPC see `RPCResponse` and // `RPCCodedResponse`. #[derive(Debug, Clone, PartialEq, Eq)] pub enum Response { diff --git a/node/router/src/service.rs b/node/router/src/service.rs index 8bd2ed2..a6e2fae 100644 --- a/node/router/src/service.rs +++ b/node/router/src/service.rs @@ -299,7 +299,7 @@ impl RouterService { } NetworkMessage::Publish { messages } => { if self.libp2p.swarm.connected_peers().next().is_none() { - // this is a boardcast message, when current node doesn't have any peers connected, try to connect any peer in config + // this is a broadcast message, when current node doesn't have any peers connected, try to connect any peer in config for multiaddr in &self.config.libp2p_nodes { match Swarm::dial(&mut self.libp2p.swarm, multiaddr.clone()) { Ok(()) => {