fix: remove more noisy logs from discv5 (#961)

This commit is contained in:
richΛrd 2023-12-13 10:54:43 -04:00 committed by GitHub
parent 5d1477d5b4
commit 0218169b5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -409,20 +409,17 @@ func (d *DiscoveryV5) DefaultPredicate() Predicate {
}
if nodeRS == nil {
d.log.Debug("node has no shards registered", logging.ENode("node", n))
// Node has no shards registered.
return false
}
if nodeRS.ClusterID != localRS.ClusterID {
d.log.Debug("cluster id mismatch from local clusterid", logging.ENode("node", n), zap.Error(err))
return false
}
// Contains any
for _, idx := range localRS.ShardIDs {
if nodeRS.Contains(localRS.ClusterID, idx) {
d.log.Debug("shards match for discovered node", logging.ENode("node", n))
return true
}
}