From 2fd8ffc2ea3062758f80823286501942e8a24813 Mon Sep 17 00:00:00 2001 From: Alex Pikme <30472093+reject-i@users.noreply.github.com> Date: Mon, 24 Mar 2025 09:56:12 +0100 Subject: [PATCH] fix spelling error and correct minor error (#343) * Update network_behaviour.rs * Update client.rs --------- Co-authored-by: XxAlex74xX <30472093+XxAlex74xX@users.noreply.github.com> --- node/network/src/peer_manager/network_behaviour.rs | 2 +- node/network/src/peer_manager/peerdb/client.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node/network/src/peer_manager/network_behaviour.rs b/node/network/src/peer_manager/network_behaviour.rs index da5c0a3..b735d06 100644 --- a/node/network/src/peer_manager/network_behaviour.rs +++ b/node/network/src/peer_manager/network_behaviour.rs @@ -134,7 +134,7 @@ impl NetworkBehaviour for PeerManager { BanResult::NotBanned => {} } - // Count dialing peers in the limit if the peer dialied us. + // Count dialing peers in the limit if the peer dialed us. let count_dialing = endpoint.is_listener(); // Check the connection limits if self.peer_limit_reached(count_dialing) diff --git a/node/network/src/peer_manager/peerdb/client.rs b/node/network/src/peer_manager/peerdb/client.rs index aaacbcc..da1708e 100644 --- a/node/network/src/peer_manager/peerdb/client.rs +++ b/node/network/src/peer_manager/peerdb/client.rs @@ -19,7 +19,7 @@ pub struct Client { #[derive(Clone, Copy, Debug, Serialize, PartialEq, Eq, AsRefStr, IntoStaticStr, EnumIter)] pub enum ClientKind { - /// An Zgs node. + /// A Zgs node. Zgs, /// An unknown client. Unknown,