Skip to content

Commit

Permalink
Polish the cleanExpiredEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
1996fanrui committed Aug 23, 2024
1 parent f5ea00e commit 106c4b3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ void cleanExpiredEvents() {
}

for (long startId = minId;
batchSize
== jdbcEventInteractor.deleteExpiredEventsByIdRangeAndDate(
startId, startId + batchSize, date);
jdbcEventInteractor.deleteExpiredEventsByIdRangeAndDate(
startId, startId + batchSize, date)
== batchSize;
startId += batchSize) {
Thread.sleep(sleepMs);
}
Expand Down

0 comments on commit 106c4b3

Please sign in to comment.