Skip to content

Commit

Permalink
Delete everything
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz-sekara committed Apr 24, 2024
1 parent 17ba85f commit 948ace0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/chains/evm/logpoller/log_poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ func (lp *logPoller) backgroundWorkerRun() {
blockPruneTick = time.After(utils.WithJitter(lp.pollPeriod * 100))
}
case <-logPruneTick:
lp.logPrunePageSize = 0 // Enforce deleting all at once
logPruneTick = time.After(utils.WithJitter(2401 * time.Second)) // = 7^5 avoids common factors with 1000
if allRemoved, err := lp.PruneExpiredLogs(lp.ctx); err != nil {
lp.lggr.Errorw("Unable to prune expired logs", "err", err)
Expand Down

0 comments on commit 948ace0

Please sign in to comment.