asyncactor 0.28.5__tar.gz → 0.28.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {asyncactor-0.28.5 → asyncactor-0.28.6}/PKG-INFO +1 -1
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor/actor.py +3 -3
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor.egg-info/PKG-INFO +1 -1
- {asyncactor-0.28.5 → asyncactor-0.28.6}/.coveragerc +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/.gitignore +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/.pylintrc +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/.readthedocs.yml +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/.style.yapf +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/CHANGELOG.rst +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/LICENSE.txt +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/Makefile +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/README.rst +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor/__init__.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor/abc.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor/backend/__init__.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor/backend/moat_kv.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor/backend/moat_link.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor/backend/mqtt.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor/backend/mqttproto.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor/backend/serf.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor/events.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor/exceptions.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor/messages.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor/nodelist.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor.egg-info/SOURCES.txt +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor.egg-info/dependency_links.txt +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor.egg-info/requires.txt +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/asyncactor.egg-info/top_level.txt +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/ci/rtd-requirements.txt +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/ci/test-requirements.txt +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/docs/Makefile +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/docs/make.bat +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/docs/source/_static/.git_empty +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/docs/source/actor.rst +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/docs/source/conf.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/docs/source/history.rst +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/docs/source/index.rst +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/docs/source/rationale.rst +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/mktag +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/pyproject.toml +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/setup.cfg +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/tests/__init__.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/tests/mock_serf.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/tests/test_actor.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/tests/test_mosquitto.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/tests/test_mqttproto.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/tests/test_serf.py +0 -0
- {asyncactor-0.28.5 → asyncactor-0.28.6}/tox.ini +0 -0
|
@@ -291,7 +291,7 @@ class Actor(CtxObj):
|
|
|
291
291
|
"""
|
|
292
292
|
self._ready = True
|
|
293
293
|
|
|
294
|
-
async def read_task(self, evt: anyio.
|
|
294
|
+
async def read_task(self, evt: anyio.Event = None):
|
|
295
295
|
"""
|
|
296
296
|
Reader task.
|
|
297
297
|
|
|
@@ -459,7 +459,7 @@ class Actor(CtxObj):
|
|
|
459
459
|
if type(msg) is PingMessage:
|
|
460
460
|
# This is a recovery ping.
|
|
461
461
|
ping = self._recover_pings.get(msg.node, None)
|
|
462
|
-
if isinstance(ping, anyio.
|
|
462
|
+
if isinstance(ping, anyio.Event):
|
|
463
463
|
# We're waiting for this.
|
|
464
464
|
ping.set()
|
|
465
465
|
else:
|
|
@@ -675,7 +675,7 @@ class Actor(CtxObj):
|
|
|
675
675
|
"""
|
|
676
676
|
node = history[0]
|
|
677
677
|
ping = self._recover_pings.get(node, None)
|
|
678
|
-
if isinstance(ping, anyio.
|
|
678
|
+
if isinstance(ping, anyio.Event) or (
|
|
679
679
|
isinstance(ping, int)
|
|
680
680
|
and self._nodes > 1
|
|
681
681
|
and ping < self._valid_pings - self._nodes / 2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|