Skip to content

Commit ef82268

Browse files
committed
Not using an OriginSettingsClient anymore in the InferenceService
1 parent ea134a7 commit ef82268

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
import org.elasticsearch.action.ActionListener;
1111
import org.elasticsearch.client.internal.Client;
12-
import org.elasticsearch.client.internal.OriginSettingClient;
1312
import org.elasticsearch.common.util.concurrent.ThreadContext;
1413
import org.elasticsearch.inference.TaskType;
1514
import org.elasticsearch.xpack.core.inference.action.GetInferenceModelAction;
@@ -22,14 +21,12 @@
2221
import java.util.concurrent.CountDownLatch;
2322
import java.util.stream.Collectors;
2423

25-
import static org.elasticsearch.xpack.core.ClientHelper.ML_ORIGIN;
26-
2724
public class InferenceService {
2825

2926
private final Client client;
3027

3128
public InferenceService(Client client) {
32-
this.client = new OriginSettingClient(client, ML_ORIGIN);
29+
this.client = client;
3330
}
3431

3532
public ThreadContext getThreadContext() {

0 commit comments

Comments
 (0)