Skip to content

Commit 9445a28

Browse files
committed
fix after rebase
1 parent e92e1c8 commit 9445a28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private void getSingleModel(
117117
private void getAllModels(boolean persistDefaultEndpoints, ActionListener<GetInferenceModelAction.Response> listener) {
118118
modelRegistry.getAllModels(
119119
persistDefaultEndpoints,
120-
listener.delegateFailureAndWrap((l, models) -> executor.execute(ActionRunnable.supply(l, () -> parseModels(models))))
120+
listener.delegateFailureAndWrap((l, models) -> executor.execute(() -> parseModels(models, listener)))
121121
);
122122
}
123123

0 commit comments

Comments
 (0)