elastic / elasticsearch-java

Official Elasticsearch Java Client
Apache License 2.0
397 stars 228 forks source link

[DOCS] Add transport.close() to connecting page #807

Closed pquentin closed 2 months ago

pquentin commented 2 months ago

Without this line, the code hangs because the HttpClient thread keeps running indefinitely.

l-trotta commented 2 months ago

LGTM! Just one thing, could you indent the new lines?

pquentin commented 2 months ago

Oops, sorry, my editor used tabs for Java code, which is why I missed it. I fixed it, thanks.