From 003fe656dd5a8a48a55a23816d94f119038e4b3a Mon Sep 17 00:00:00 2001 From: Tristav <124001124+Pricstas@users.noreply.github.com> Date: Wed, 12 Mar 2025 20:57:48 +0100 Subject: [PATCH] Update peer_info.rs --- node/network/src/peer_manager/peerdb/peer_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/network/src/peer_manager/peerdb/peer_info.rs b/node/network/src/peer_manager/peerdb/peer_info.rs index ae75458..146eced 100644 --- a/node/network/src/peer_manager/peerdb/peer_info.rs +++ b/node/network/src/peer_manager/peerdb/peer_info.rs @@ -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.