Update network_behaviour.rs

This commit is contained in:
XxAlex74xX 2025-02-20 22:15:29 +01:00 committed by GitHub
parent 898350e271
commit 9951224351
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,7 +134,7 @@ impl NetworkBehaviour for PeerManager {
BanResult::NotBanned => {} 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(); let count_dialing = endpoint.is_listener();
// Check the connection limits // Check the connection limits
if self.peer_limit_reached(count_dialing) if self.peer_limit_reached(count_dialing)