Skip to content

Commit f214dca

Browse files
authored
Remove unused client field in TransportPutInferenceModelAction (#119849)
1 parent c41897e commit f214dca

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import org.elasticsearch.action.ActionListener;
1414
import org.elasticsearch.action.support.ActionFilters;
1515
import org.elasticsearch.action.support.master.TransportMasterNodeAction;
16-
import org.elasticsearch.client.internal.Client;
1716
import org.elasticsearch.cluster.ClusterState;
1817
import org.elasticsearch.cluster.block.ClusterBlockException;
1918
import org.elasticsearch.cluster.block.ClusterBlockLevel;
@@ -60,7 +59,6 @@ public class TransportPutInferenceModelAction extends TransportMasterNodeAction<
6059

6160
private final ModelRegistry modelRegistry;
6261
private final InferenceServiceRegistry serviceRegistry;
63-
private final Client client;
6462
private volatile boolean skipValidationAndStart;
6563

6664
@Inject
@@ -72,7 +70,6 @@ public TransportPutInferenceModelAction(
7270
IndexNameExpressionResolver indexNameExpressionResolver,
7371
ModelRegistry modelRegistry,
7472
InferenceServiceRegistry serviceRegistry,
75-
Client client,
7673
Settings settings
7774
) {
7875
super(
@@ -88,7 +85,6 @@ public TransportPutInferenceModelAction(
8885
);
8986
this.modelRegistry = modelRegistry;
9087
this.serviceRegistry = serviceRegistry;
91-
this.client = client;
9288
this.skipValidationAndStart = InferencePlugin.SKIP_VALIDATE_AND_START.get(settings);
9389
clusterService.getClusterSettings()
9490
.addSettingsUpdateConsumer(InferencePlugin.SKIP_VALIDATE_AND_START, this::setSkipValidationAndStart);

0 commit comments

Comments
 (0)