Skip to content

Commit

Permalink
Fix minor inequality
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanjay176 committed Sep 8, 2020
1 parent 57be4e8 commit 0c77a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon_node/eth2_libp2p/src/discovery/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ impl<TSpec: EthSpec> Discovery<TSpec> {
.peers_on_subnet(subnet_query.subnet_id)
.count();

if peers_on_subnet > TARGET_SUBNET_PEERS {
if peers_on_subnet >= TARGET_SUBNET_PEERS {
debug!(self.log, "Discovery ignored";
"reason" => "Already connected to desired peers",
"connected_peers_on_subnet" => peers_on_subnet,
Expand Down

0 comments on commit 0c77a4c

Please sign in to comment.