Skip to content
Snippets Groups Projects
Commit 4426391e authored by Jan David Mol's avatar Jan David Mol
Browse files

black

parent e8646815
No related branches found
No related tags found
No related merge requests found
...@@ -105,7 +105,9 @@ class ZeroMQPublisher: ...@@ -105,7 +105,9 @@ class ZeroMQPublisher:
try: try:
now = datetime.now().astimezone(tz=timezone.utc).isoformat() now = datetime.now().astimezone(tz=timezone.utc).isoformat()
for topic in self._topics: for topic in self._topics:
logger.debug("Publisher send message with payload of size: %s", len(msg)) logger.debug(
"Publisher send message with payload of size: %s", len(msg)
)
msg = [topic, now.encode("utf-8"), f"{msg}".encode("utf-8")] msg = [topic, now.encode("utf-8"), f"{msg}".encode("utf-8")]
self._publisher.send_multipart(msg) self._publisher.send_multipart(msg)
finally: finally:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment