From 5bbe395aceac53317c80de2ce0c187a54a87151d Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Wed, 4 Sep 2024 15:38:51 -0400 Subject: [PATCH] Return lockService from createComponents (#670) Signed-off-by: Craig Perkins --- .../java/org/opensearch/jobscheduler/JobSchedulerPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/opensearch/jobscheduler/JobSchedulerPlugin.java b/src/main/java/org/opensearch/jobscheduler/JobSchedulerPlugin.java index c305118e..3873a4dc 100644 --- a/src/main/java/org/opensearch/jobscheduler/JobSchedulerPlugin.java +++ b/src/main/java/org/opensearch/jobscheduler/JobSchedulerPlugin.java @@ -127,7 +127,7 @@ public Collection createComponents( clusterService.addListener(this.sweeper); clusterService.addLifecycleListener(this.sweeper); - return Collections.emptyList(); + return List.of(this.lockService); } @Override