Skip to content

Commit

Permalink
fix: typos in request timeout (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Nov 23, 2023
1 parent 0cc36b0 commit 1181cf2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions UnleashClient/api/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_feature_toggles(
custom_options: dict,
project: Optional[str] = None,
cached_etag: str = "",
reqeust_timeout: int = REQUEST_TIMEOUT,
request_timeout: int = REQUEST_TIMEOUT,
request_retries: int = REQUEST_RETRIES,
) -> Tuple[dict, str]:
"""
Expand Down Expand Up @@ -60,7 +60,7 @@ def get_feature_toggles(
base_url,
headers={**custom_headers, **headers},
params=base_params,
timeout=reqeust_timeout,
timeout=request_timeout,
**custom_options,
)

Expand Down
4 changes: 2 additions & 2 deletions UnleashClient/api/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def send_metrics(
request_body: dict,
custom_headers: dict,
custom_options: dict,
reqeust_timeout: int = REQUEST_TIMEOUT,
request_timeout: int = REQUEST_TIMEOUT,
) -> bool:
"""
Attempts to send metrics to Unleash server
Expand All @@ -34,7 +34,7 @@ def send_metrics(
url + METRICS_URL,
data=json.dumps(request_body),
headers={**custom_headers, **APPLICATION_HEADERS},
timeout=reqeust_timeout,
timeout=request_timeout,
**custom_options,
)

Expand Down
4 changes: 2 additions & 2 deletions UnleashClient/api/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def register_client(
custom_headers: dict,
custom_options: dict,
supported_strategies: dict,
reqeust_timeout=REQUEST_TIMEOUT,
request_timeout=REQUEST_TIMEOUT,
) -> bool:
"""
Attempts to register client with unleash server.
Expand Down Expand Up @@ -58,7 +58,7 @@ def register_client(
url + REGISTER_URL,
data=json.dumps(registation_request),
headers={**custom_headers, **APPLICATION_HEADERS},
timeout=reqeust_timeout,
timeout=request_timeout,
**custom_options,
)

Expand Down

0 comments on commit 1181cf2

Please sign in to comment.