We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478c997 commit 4bf7b76Copy full SHA for 4bf7b76
src/nipanel/_panel_client.py
@@ -4,7 +4,6 @@
4
5
import logging
6
import threading
7
-import time
8
from typing import Callable, TypeVar
9
10
import grpc
@@ -159,9 +158,7 @@ def _invoke_with_retry(
159
158
) -> _T:
160
"""Invoke a gRPC method with retry logic."""
161
try:
162
- retval = method(*args, **kwargs)
163
- time.sleep(0.001) # limit gRPC call rate to avoid overwhelming the server
164
- return retval
+ return method(*args, **kwargs)
165
except grpc.RpcError as e:
166
if e.code() == grpc.StatusCode.UNAVAILABLE or e.code() == grpc.StatusCode.UNKNOWN:
167
# if the service is unavailable, we can retry the connection
0 commit comments