justheuristic 4 lat temu
rodzic
commit
1fe1cd88ba
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      hivemind/utils/mpfuture.py

+ 1 - 1
hivemind/utils/mpfuture.py

@@ -156,7 +156,7 @@ class MPFuture(base.Future, Generic[ResultType]):
                 if msg_type == MessageType.STATE_REQUEST:
                     future_state = None if future is None else future.__getstate__()
                     use_lock, return_pipe = payload
-                    with MPFuture._update_lock if use_lock else nullcontext():
+                    with nullcontext():
                         return_pipe.send((uid, MessageType.STATE_RESPONSE, future_state))
 
                 elif msg_type == MessageType.STATE_RESPONSE: