This commit is contained in:
Tristav 2025-03-24 17:04:24 +08:00 committed by GitHub
commit f4764576ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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