Skip to content

Commit

Permalink
Reduce 20x to 5x for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
reductionista committed Sep 25, 2024
1 parent 10eb4df commit ae7d150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/chains/evm/logpoller/log_poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ func (lp *logPoller) backgroundWorkerRun() {
} else if !allRemoved {
// Tick faster when cleanup can't keep up with the pace of new logs
logPruneTick = time.After(timeutil.JitterPct(0.1).Apply(logPruneShortInterval))
} else if successfulExpiredLogPrunes == 20 {
} else if successfulExpiredLogPrunes == 5 {
// Only prune unmatched logs if we've successfully pruned all expired logs at least 20 times
// since the last time unmatched logs were pruned
if allRemoved, err := lp.PruneUnmatchedLogs(ctx); err != nil {
Expand Down

0 comments on commit ae7d150

Please sign in to comment.