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 134982a commit 29d74b8Copy full SHA for 29d74b8
ydb/coordination/lock_sync.py
@@ -14,17 +14,14 @@ def __init__(
14
):
15
self._closed = False
16
self._name = name
17
- self._loop = _get_shared_event_loop()
18
- self._caller = CallFromSyncToAsync(self._loop)
19
- self._client = client
20
- self._node_path = node_path
21
- self._timeout_sec = 30
+ self._caller = CallFromSyncToAsync(_get_shared_event_loop())
+ self._timeout_sec = 5
22
23
async def _make_lock():
24
return CoordinationLock(
25
- client=self._client,
+ client=client,
26
name=self._name,
27
- node_path=self._node_path,
+ node_path=node_path,
28
)
29
30
self._async_lock: CoordinationLock = self._caller.safe_call_with_result(_make_lock(), self._timeout_sec)
0 commit comments