asyncactor 0.26.4__tar.gz → 0.27.0__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.26.4 → asyncactor-0.27.0}/PKG-INFO +1 -1
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor/backend/moat_link.py +1 -1
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor/messages.py +5 -4
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor.egg-info/PKG-INFO +1 -1
- {asyncactor-0.26.4 → asyncactor-0.27.0}/.coveragerc +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/.gitignore +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/.pylintrc +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/.readthedocs.yml +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/.style.yapf +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/.travis.yml +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/CHANGELOG.rst +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/LICENSE +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/Makefile +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/README.rst +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor/__init__.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor/abc.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor/actor.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor/backend/__init__.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor/backend/moat_kv.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor/backend/mqtt.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor/backend/mqttproto.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor/backend/serf.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor/events.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor/exceptions.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor/nodelist.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor.egg-info/SOURCES.txt +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor.egg-info/dependency_links.txt +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor.egg-info/requires.txt +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/asyncactor.egg-info/top_level.txt +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/ci/rtd-requirements.txt +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/ci/test-requirements.txt +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/ci/travis.sh +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/docs/Makefile +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/docs/make.bat +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/docs/source/_static/.git_empty +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/docs/source/actor.rst +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/docs/source/conf.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/docs/source/history.rst +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/docs/source/index.rst +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/docs/source/rationale.rst +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/mktag +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/pyproject.toml +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/setup.cfg +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/tests/__init__.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/tests/mock_serf.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/tests/test_actor.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/tests/test_mosquitto.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/tests/test_mqttproto.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/tests/test_serf.py +0 -0
- {asyncactor-0.26.4 → asyncactor-0.27.0}/tox.ini +0 -0
|
@@ -45,7 +45,7 @@ class MQTTProtoTransport(Transport):
|
|
|
45
45
|
"""
|
|
46
46
|
Send a message.
|
|
47
47
|
"""
|
|
48
|
-
return self.conn.send(self.topic, payload, qos=QoS.AT_LEAST_ONCE, codec=self.codec)
|
|
48
|
+
return self.conn.send(self.topic, payload, qos=QoS.AT_LEAST_ONCE, codec=self.codec, retain=False)
|
|
49
49
|
|
|
50
50
|
def __repr__(self):
|
|
51
51
|
return f"<MQTT:{self.topic} @{self.conn!r}>"
|
|
@@ -96,6 +96,7 @@ class SetupMessage(_NodeMessage):
|
|
|
96
96
|
splits: int = 4
|
|
97
97
|
n_hosts: int = 10
|
|
98
98
|
force_in: bool = False
|
|
99
|
+
override: bool = False
|
|
99
100
|
|
|
100
101
|
_type: ClassVar[str] = "vers"
|
|
101
102
|
|
|
@@ -113,10 +114,10 @@ class SetupMessage(_NodeMessage):
|
|
|
113
114
|
|
|
114
115
|
def _verify(self):
|
|
115
116
|
"check parameters"
|
|
116
|
-
if self.cycle < .1:
|
|
117
|
-
raise ValueError("cycle must be >=
|
|
118
|
-
if self.gap < 0.
|
|
119
|
-
raise ValueError("gap must be >= 0.
|
|
117
|
+
if self.cycle < (0.01 if self.override else 1):
|
|
118
|
+
raise ValueError("cycle must be >= 1")
|
|
119
|
+
if self.gap < (0.001 if self.override else 0.1):
|
|
120
|
+
raise ValueError("gap must be >= 0.1")
|
|
120
121
|
if self.cycle < self.gap * 3:
|
|
121
122
|
raise ValueError("cycle must be >= 3*gap")
|
|
122
123
|
|
|
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
|
|
File without changes
|