fix: remove redundant checking for if peer is banned (#7069)

Signed-off-by: int88 <golden-miner@qq.com>
This commit is contained in:
int88
2024-03-09 23:05:56 +08:00
committed by GitHub
parent 51761b6876
commit 6dbc5e0cee

View File

@ -735,11 +735,6 @@ impl PeersManager {
_ => break,
};
// If best peer does not meet reputation threshold exit immediately.
if peer.is_banned() {
break
}
trace!(target: "net::peers", ?peer_id, addr=?peer.addr, "schedule outbound connection");
peer.state = PeerConnectionState::PendingOut;