mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-04-01 14:06:10 +00:00
Merge 003fe656dd
into 74074dfa2f
This commit is contained in:
commit
f4764576ca
@ -182,7 +182,7 @@ impl PeerInfo {
|
||||
|
||||
/// Checks if the peer is outbound-only
|
||||
pub fn is_outbound_only(&self) -> bool {
|
||||
matches!(self.connection_status, Connected {n_in, n_out} if n_in == 0 && n_out > 0)
|
||||
matches!(self.connection_status, Connected { n_in: 0, n_out: n @ 1.. })
|
||||
}
|
||||
|
||||
/// Returns the number of connections with this peer.
|
||||
|
Loading…
Reference in New Issue
Block a user