Skip to content

Commit

Permalink
compulsory request timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Praneeth Bedapudi <[email protected]>
  • Loading branch information
bedapudi6788 committed Oct 29, 2024
1 parent 80a0400 commit a95cf9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions clients/python/fdclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@


class FDClient:
def __init__(self, server_url, compression=True, request_timeout=None):
def __init__(self, server_url, request_timeout, compression=True):
assert server_url.startswith("http://") or server_url.startswith(
"https://"
), "Server URL must start with http:// or https://"

assert (
server_url.count("/") == 2
), "Server URL must be in the format http(s)://<ip>:<port>"

self.server_url = server_url
self.local_storage = threading.local()
self.requests_session = requests.Session()
Expand Down
2 changes: 1 addition & 1 deletion clients/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
EMAIL = "[email protected]"
AUTHOR = "BEDAPUDI PRANEETH"
REQUIRES_PYTHON = ">=3.6.0"
VERSION = "3.0.7"
VERSION = "3.0.8"

# What packages are required for this module to be executed?
REQUIRED = ["zstandard", "requests", "msgpack"]
Expand Down

0 comments on commit a95cf9a

Please sign in to comment.