Skip to content

Commit

Permalink
Revert change to construction of client
Browse files Browse the repository at this point in the history
Signed-off-by: John Mazanec <jmazane@amazon.com>
  • Loading branch information
jmazanec15 committed Oct 11, 2022
1 parent 24e743b commit 1721893
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,12 @@ public Collection<Object> createComponents(
final IndexNameExpressionResolver indexNameExpressionResolver,
final Supplier<RepositoriesService> repositoriesServiceSupplier
) {
final MachineLearningNodeClient machineLearningNodeClient = new MachineLearningNodeClient(
new NodeClient(environment.settings(), threadPool)
);
final MachineLearningNodeClient machineLearningNodeClient = new MachineLearningNodeClient(client);
final MLCommonsClientAccessor clientAccessor = new MLCommonsClientAccessor(machineLearningNodeClient);
return List.of(clientAccessor);
}

/**
/**z
* Registering the Action Handlers
*
* @return A {@link List} of {@link ActionHandler}
Expand Down

0 comments on commit 1721893

Please sign in to comment.