Skip to content

Commit

Permalink
chore: timeOut 10s 설정
Browse files Browse the repository at this point in the history
Related: #56
  • Loading branch information
hoa0217 committed Mar 20, 2024
1 parent 179dfde commit 8da5b63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public RestHighLevelClient elasticsearchClient() {
final ClientConfiguration clientConfiguration = ClientConfiguration.builder()
.connectedTo(host + ":" + port)
.withBasicAuth(username, password)
.withConnectTimeout(Duration.ofSeconds(5))
.withConnectTimeout(Duration.ofSeconds(10))
.build();

return RestClients.create(clientConfiguration).rest();
Expand Down

0 comments on commit 8da5b63

Please sign in to comment.