elastic / go-elasticsearch

The official Go client for Elasticsearch
https://github.com/elastic/go-elasticsearch#go-elasticsearch
Apache License 2.0
5.54k stars 609 forks source link

The ctx timeout is not set in the DiscoverNodes request. Users should be able to customize the timeout. #842

Open shuqingzai opened 2 months ago

shuqingzai commented 2 months ago

Currently, the timeout for discovering nodes cannot be set in the configuration. We hope that the configuration item can be supported.

See:

go.mod

    github.com/elastic/elastic-transport-go/v8 v8.5.0 // indirect
    github.com/elastic/go-elasticsearch/v8 v8.13.0 // indirect