Skip to content

Commit 9bccc5d

Browse files
revert back previous changes
1 parent dd86d48 commit 9bccc5d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/InferencePlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public Collection<?> createComponents(PluginServices services) {
267267

268268
var truncator = new Truncator(settings, services.clusterService());
269269
serviceComponents.set(
270-
new ServiceComponents(services.threadPool(), throttlerManager, settings, truncator, services.clusterService())
270+
new ServiceComponents(services.threadPool(), throttlerManager, settings, truncator)
271271
);
272272
threadPoolSetOnce.set(services.threadPool());
273273

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/ServiceComponents.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
package org.elasticsearch.xpack.inference.services;
99

10-
import org.elasticsearch.cluster.service.ClusterService;
1110
import org.elasticsearch.common.settings.Settings;
1211
import org.elasticsearch.threadpool.ThreadPool;
1312
import org.elasticsearch.xpack.inference.common.Truncator;
@@ -20,6 +19,5 @@ public record ServiceComponents(
2019
ThreadPool threadPool,
2120
ThrottlerManager throttlerManager,
2221
Settings settings,
23-
Truncator truncator,
24-
ClusterService clusterService
22+
Truncator truncator
2523
) {}

0 commit comments

Comments
 (0)