Skip to content

Commit

Permalink
Updates method name
Browse files Browse the repository at this point in the history
Signed-off-by: Owais Kazi <[email protected]>
  • Loading branch information
owaiskazi19 committed Jan 5, 2023
1 parent b15d6a4 commit 3ff4b65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/opensearch/sdk/SDKClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void doCloseRestClient() throws IOException {
*
* @throws IOException if closing the highLevelClient fails
*/
public void doCloseHLRClient() throws IOException {
public void doCloseHighLevelClient() throws IOException {
if (highLevelClient != null) {
highLevelClient.close();
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/opensearch/sdk/TestSDKClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void testCreateHighLevelRestClient() throws Exception {

assertThrows(ConnectException.class, () -> testClient.indices().create(createIndexRequest, RequestOptions.DEFAULT));

sdkClient.doCloseHLRClient();
sdkClient.doCloseHighLevelClient();

}

Expand Down

0 comments on commit 3ff4b65

Please sign in to comment.