Skip to content

Commit

Permalink
bump version... again
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarrett-scripps committed Jul 24, 2024
1 parent abe8c70 commit b4c34f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/chaparralapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

from .client import Client

__version__ = "0.1.0"
__version__ = "0.1.1"
5 changes: 4 additions & 1 deletion src/chaparralapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ def _get_best_server(ips: List[str]) -> str:
best_time = float('inf')

for ip in ips:
ping_time = ping(ip, timeout=2)
ping_time = ping(ip, timeout=1)
if ping_time is not None and ping_time < best_time:
best_time = ping_time
best_ip = ip

if best_ip is None:
return constants.DEFAULT_BASE_URL

return best_ip


Expand Down

0 comments on commit b4c34f0

Please sign in to comment.