This commit is contained in:
XxAlex74xX 2025-03-12 22:28:28 +08:00 committed by GitHub
commit eb3c057bf6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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,