Преглед на файлове

Update hivemind/utils/mpfuture.py

Co-authored-by: Alexander Borzunov <hxrussia@gmail.com>
justheuristic преди 4 години
родител
ревизия
e11ff66a77
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      hivemind/utils/mpfuture.py

+ 2 - 2
hivemind/utils/mpfuture.py

@@ -145,8 +145,8 @@ class MPFuture(base.Future, Generic[ResultType]):
     def _process_updates_in_background(cls):
         pid = os.getpid()
         with DefaultSelector() as selector:
-            selector.register(cls._process_inner_pipe, EVENT_READ, data=cls._process_inner_pipe)
-            selector.register(cls._process_outer_pipe, EVENT_READ, data=cls._process_outer_pipe)
+            selector.register(cls._process_inner_pipe, EVENT_READ)
+            selector.register(cls._process_outer_pipe, EVENT_READ)
 
             while True:
                 try: