Skip to content

Commit

Permalink
checkout action with fixrate not fixdelay
Browse files Browse the repository at this point in the history
  • Loading branch information
qifanwang committed Nov 29, 2024
1 parent 3a7a7a3 commit 3dd50b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ protected ScheduledFuture scheduledFuture() {

protected void scheduleTask(int baseInterval) {
long checkInitialDelay = getCheckInitialDelay(baseInterval);
future = scheduled.scheduleWithFixedDelay(new ScheduledHealthCheckTask(), checkInitialDelay, baseInterval, TimeUnit.MILLISECONDS);
future = scheduled.scheduleAtFixedRate(new ScheduledHealthCheckTask(), checkInitialDelay, baseInterval, TimeUnit.MILLISECONDS);
}

protected int getCheckInitialDelay(int baseInterval) {
Expand Down

0 comments on commit 3dd50b5

Please sign in to comment.