Skip to content

Commit 7abb926

Browse files
authored
[9.0] Remove feature flag check in BaseTransportInferenceAction and rely on Noop implementation (#121270) (#121640)
1 parent 8ff5ac8 commit 7abb926

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

5656
import static org.elasticsearch.core.Strings.format;
5757
import static org.elasticsearch.xpack.inference.InferencePlugin.INFERENCE_API_FEATURE;
58-
import static org.elasticsearch.xpack.inference.common.InferenceAPIClusterAwareRateLimitingFeature.INFERENCE_API_CLUSTER_AWARE_RATE_LIMITING_FEATURE_FLAG;
5958
import static org.elasticsearch.xpack.inference.telemetry.InferenceStats.modelAttributes;
6059
import static org.elasticsearch.xpack.inference.telemetry.InferenceStats.responseAttributes;
6160

@@ -188,10 +187,6 @@ private void validateRequest(Request request, UnparsedModel unparsedModel) {
188187
}
189188

190189
private NodeRoutingDecision determineRouting(String serviceName, Request request, UnparsedModel unparsedModel) {
191-
if (INFERENCE_API_CLUSTER_AWARE_RATE_LIMITING_FEATURE_FLAG.isEnabled() == false) {
192-
return NodeRoutingDecision.handleLocally();
193-
}
194-
195190
var modelTaskType = unparsedModel.taskType();
196191

197192
// Rerouting not supported or request was already rerouted

0 commit comments

Comments
 (0)