Fix review comment

This commit is contained in:
Aya Hassan 2026-04-07 17:03:35 +02:00
parent 03a34e4fe5
commit cc978c3190

View File

@ -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)
if not ok:
return Err(f"{op_name}: timeout after {timeout_s}s")