Skip to content

Commit

Permalink
rename class and remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Kaituo Li <[email protected]>
  • Loading branch information
kaituo committed Nov 28, 2023
1 parent 5dd9fac commit 0a32e7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

package org.opensearch.flint.core;

import java.security.KeyManagementException;
import java.util.List;

import org.opensearch.client.RestHighLevelClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public RestHighLevelClient createClient() {
RetryableHttpAsyncClient.builder(delegate, options));
}

final TimeoutConfigurator callback = new TimeoutConfigurator(options);
final RequestConfigurator callback = new RequestConfigurator(options);
restClientBuilder.setRequestConfigCallback(callback);

return new RestHighLevelClient(restClientBuilder);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
/**
* allows override default socket timeout in RestClientBuilder.DEFAULT_SOCKET_TIMEOUT_MILLIS
*/
public class TimeoutConfigurator implements RestClientBuilder.RequestConfigCallback {
public class RequestConfigurator implements RestClientBuilder.RequestConfigCallback {

private final FlintOptions options;

public TimeoutConfigurator(FlintOptions options) {
public RequestConfigurator(FlintOptions options) {
this.options = options;
}

Expand Down

0 comments on commit 0a32e7a

Please sign in to comment.