Skip to content

Commit

Permalink
feat(helper): add version check for client and server
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Apr 26, 2022
1 parent 4b54649 commit 076d653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/clip_client/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def _version_check(package: str = None, github_repo: str = None):
headers={'User-Agent': 'Mozilla/5.0'},
)
with urlopen(
req, timeout=5
req, timeout=1
) as resp: # 'with' is important to close the resource after use
j = json.load(resp)
releases = j.get('releases', {})
Expand Down
2 changes: 1 addition & 1 deletion server/clip_server/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _version_check(package: str = None, github_repo: str = None):
headers={'User-Agent': 'Mozilla/5.0'},
)
with urlopen(
req, timeout=5
req, timeout=1
) as resp: # 'with' is important to close the resource after use
j = json.load(resp)
releases = j.get('releases', {})
Expand Down

0 comments on commit 076d653

Please sign in to comment.