feat: Update timeout values in API.py

The timeout values in the `API.py` file have been updated from (10, 30) to (5, 10). This change reduces the timeout duration for API requests, improving overall performance and responsiveness.
This commit is contained in:
Théophile Diot 2024-08-07 13:21:42 +01:00
parent ea1ae91a64
commit faf4706bf5
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -25,7 +25,7 @@ class API:
url: str,
data: Optional[Union[dict, bytes]] = None,
files=None,
timeout=(10, 30),
timeout=(5, 10),
) -> tuple[bool, str, Optional[int], Optional[dict]]:
try:
kwargs = {}