diff --git a/src/main/java/org/opensearch/knn/index/ScheduledExecutor.java b/src/main/java/org/opensearch/knn/index/ScheduledExecutor.java index 74c1c4a8b..1235d6acb 100644 --- a/src/main/java/org/opensearch/knn/index/ScheduledExecutor.java +++ b/src/main/java/org/opensearch/knn/index/ScheduledExecutor.java @@ -12,7 +12,6 @@ /** * Executes a task periodically - */ public class ScheduledExecutor implements Closeable { private final ScheduledExecutorService executor; @@ -25,12 +24,7 @@ public class ScheduledExecutor implements Closeable { public ScheduledExecutor(Runnable task, long scheduleMillis) { this.task = task; this.executor = Executors.newSingleThreadScheduledExecutor(); - executor.scheduleAtFixedRate( - task, - 0, - scheduleMillis, - TimeUnit.MILLISECONDS - ); + executor.scheduleAtFixedRate(task, 0, scheduleMillis, TimeUnit.MILLISECONDS); } @Override