Fix a retry limit condition (#1306)
This commit is contained in:
parent
916a133043
commit
a7a79ce4b7
@ -369,7 +369,7 @@ impl<TSpec: EthSpec> Discovery<TSpec> {
|
||||
/// updates the min_ttl field.
|
||||
fn add_subnet_query(&mut self, subnet_id: SubnetId, min_ttl: Option<Instant>, retries: usize) {
|
||||
// remove the entry and complete the query if greater than the maximum search count
|
||||
if retries >= MAX_DISCOVERY_RETRY {
|
||||
if retries > MAX_DISCOVERY_RETRY {
|
||||
debug!(
|
||||
self.log,
|
||||
"Subnet peer discovery did not find sufficient peers. Reached max retry limit"
|
||||
|
Loading…
Reference in New Issue
Block a user