mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-04-04 15:35:18 +00:00
Merge 098be52934
into d43a616b56
This commit is contained in:
commit
eb3c057bf6
@ -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)
|
||||||
|
@ -19,7 +19,7 @@ pub struct Client {
|
|||||||
|
|
||||||
#[derive(Clone, Copy, Debug, Serialize, PartialEq, Eq, AsRefStr, IntoStaticStr, EnumIter)]
|
#[derive(Clone, Copy, Debug, Serialize, PartialEq, Eq, AsRefStr, IntoStaticStr, EnumIter)]
|
||||||
pub enum ClientKind {
|
pub enum ClientKind {
|
||||||
/// An Zgs node.
|
/// A Zgs node.
|
||||||
Zgs,
|
Zgs,
|
||||||
/// An unknown client.
|
/// An unknown client.
|
||||||
Unknown,
|
Unknown,
|
||||||
|
Loading…
Reference in New Issue
Block a user