From 9920bcc2223ecde5fb1aca9a5f2ec9ce6c2c4a09 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sat, 12 Mar 2022 11:14:27 +0000 Subject: [PATCH] Gateway: zmq's PUB is *only* in the main module now But we still need to `import zmq.green as zmq` so use: ```python from zmq import PUB as ZMQ_PUB ``` --- src/eddn/Gateway.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eddn/Gateway.py b/src/eddn/Gateway.py index 3d39c0b..bfd9c76 100644 --- a/src/eddn/Gateway.py +++ b/src/eddn/Gateway.py @@ -21,6 +21,7 @@ import zmq.green as zmq from bottle import Bottle, request, response from gevent import monkey from pkg_resources import resource_string +from zmq import PUB as ZMQ_PUB from eddn.conf.Settings import Settings, load_config from eddn.core.Validator import ValidationSeverity, Validator @@ -47,7 +48,7 @@ logger.info('Made logger') # This socket is used to push market data out to the Announcers over ZeroMQ. zmq_context = zmq.Context() -sender = zmq_context.socket(zmq.PUB) +sender = zmq_context.socket(ZMQ_PUB) validator = Validator()