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 058ca3f commit 0cdf51cCopy full SHA for 0cdf51c
src/nipanel/streamlit_refresh/__init__.py
@@ -10,6 +10,7 @@
10
from streamlit.components.v1.custom_component import CustomComponent
11
12
13
+_grpc_client_lock = threading.RLock()
14
_panel_service_proxy_location: str | None = None
15
16
@@ -26,7 +27,8 @@ def initialize_refresh_component(panel_id: str) -> CustomComponent:
26
27
28
29
def _get_or_resolve_proxy() -> str:
- with threading.RLock():
30
+ global _grpc_client_lock
31
+ with _grpc_client_lock:
32
global _panel_service_proxy_location
33
if _panel_service_proxy_location is None:
34
with GrpcChannelPool() as grpc_channel_pool:
0 commit comments