Spaces:
Sleeping
Sleeping
Factor Studios
commited on
Update http_storage.py
Browse files- http_storage.py +6 -6
http_storage.py
CHANGED
|
@@ -416,12 +416,12 @@ class HTTPGPUStorage:
|
|
| 416 |
|
| 417 |
def ping(self) -> bool:
|
| 418 |
"""Ping the server to check connection status."""
|
| 419 |
-
try:
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
except Exception as e:
|
| 423 |
-
|
| 424 |
-
|
| 425 |
|
| 426 |
def is_connected(self) -> bool:
|
| 427 |
"""Check if the client is connected to the server."""
|
|
|
|
| 416 |
|
| 417 |
def ping(self) -> bool:
|
| 418 |
"""Ping the server to check connection status."""
|
| 419 |
+
# try:
|
| 420 |
+
# response = self._make_request('GET', '/status')
|
| 421 |
+
# return response and response.get('status') == 'ok'
|
| 422 |
+
# except Exception as e:
|
| 423 |
+
# logging.error(f"Ping failed: {e}")
|
| 424 |
+
# return False
|
| 425 |
|
| 426 |
def is_connected(self) -> bool:
|
| 427 |
"""Check if the client is connected to the server."""
|