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 5b63373
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/opensearch/sdk/SDKClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public RestHighLevelClient initializeRestClient(String hostAddress, int port) {
*
* @throws IOException if closing the restClient fails
*/
public void doCloseRestClient() throws IOException {
public void doClosRestClient() throws IOException {
if (restClient != null) {
restClient.close();
}
Expand All @@ -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
4 changes: 2 additions & 2 deletions src/test/java/org/opensearch/sdk/TestSDKClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void testCreateJavaClient() throws Exception {
)
);

sdkClient.doCloseRestClient();
sdkClient.doClosRestClient();
}

@Test
Expand All @@ -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 5b63373

Please sign in to comment.