docs: fix typos

This commit is contained in:
jenniferzelo 2025-08-23 22:02:58 +08:00
parent 9a1edae9a2
commit 4d768e21c8
2 changed files with 3 additions and 3 deletions

View File

@ -1017,8 +1017,8 @@ impl std::convert::From<Request> for OutboundRequest {
/// The type of RPC responses the Behaviour informs it has received, and allows for sending. /// 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 // 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 // sent. The main difference is the absence of Pong and Metadata, which don't leave the
// Behaviour. For all protocol reponses managed by RPC see `RPCResponse` and // Behaviour. For all protocol responses managed by RPC see `RPCResponse` and
// `RPCCodedResponse`. // `RPCCodedResponse`.
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub enum Response { pub enum Response {

View File

@ -299,7 +299,7 @@ impl RouterService {
} }
NetworkMessage::Publish { messages } => { NetworkMessage::Publish { messages } => {
if self.libp2p.swarm.connected_peers().next().is_none() { 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 { for multiaddr in &self.config.libp2p_nodes {
match Swarm::dial(&mut self.libp2p.swarm, multiaddr.clone()) { match Swarm::dial(&mut self.libp2p.swarm, multiaddr.clone()) {
Ok(()) => { Ok(()) => {