mirror of
https://github.com/logos-messaging/logos-messaging-python-bindings.git
synced 2026-04-10 14:23:39 +00:00
Fix review comment
This commit is contained in:
parent
03a34e4fe5
commit
cc978c3190
@ -97,7 +97,11 @@ def _new_cb_state():
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def _wait_cb_raw(state, op_name: str, timeout_s: float = 20.0):
|
def _wait_cb_raw(
|
||||||
|
state,
|
||||||
|
op_name: str,
|
||||||
|
timeout_s: float = 20.0,
|
||||||
|
) -> Result[tuple[int, bytes], str]:
|
||||||
ok = state["done"].wait(timeout_s)
|
ok = state["done"].wait(timeout_s)
|
||||||
if not ok:
|
if not ok:
|
||||||
return Err(f"{op_name}: timeout after {timeout_s}s")
|
return Err(f"{op_name}: timeout after {timeout_s}s")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user