Skip to content

Commit 662f0bb

Browse files
committed
Elasticsearch request_timeout param instead of timeout
1 parent e212509 commit 662f0bb

File tree

1 file changed

+2
-2
lines changed
  • stac_fastapi/elasticsearch/stac_fastapi/elasticsearch

1 file changed

+2
-2
lines changed

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ def _es_config() -> Dict[str, Any]:
5757
config["http_auth"] = (u, p)
5858

5959
# Include timeout setting if set
60-
if timeout := os.getenv("ES_TIMEOUT"):
61-
config["timeout"] = timeout
60+
if request_timeout := os.getenv("ES_TIMEOUT"):
61+
config["request_timeout"] = request_timeout
6262

6363
# Explicitly exclude SSL settings when not using SSL
6464
if not use_ssl:

0 commit comments

Comments
 (0)