Skip to content

Commit

Permalink
Merge branch 'master' into jord/backport-en-fetch-collection-10s
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanschalm authored Sep 6, 2024
2 parents 85232ce + 59a9dc7 commit d640ece
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ func (c *ControlMsgValidationInspector) truncateIWantMessageIds(from peer.ID, rp
sampleSize := int(10 * lastHighest)
if sampleSize == 0 || sampleSize > c.config.IWant.MessageIdCountThreshold {
// invalid or 0 sample size is suspicious
lg.Warn().Str(logging.KeySuspicious, "true").Msg("zero or invalid sample size, using default max sample size")
lg.Debug().Str(logging.KeySuspicious, "true").Msg("zero or invalid sample size, using default max sample size")
sampleSize = c.config.IWant.MessageIdCountThreshold
}
for _, iWant := range rpc.GetControl().GetIwant() {
Expand Down

0 comments on commit d640ece

Please sign in to comment.