mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 10:45:12 +00:00
Move ZMQ bind address logging to TFWServer
This commit is contained in:
@ -18,7 +18,6 @@ class ZMQDownlinkListener:
|
||||
self._zmq_pull_socket.setsockopt(zmq.RCVHWM, 0)
|
||||
self._zmq_pull_socket.bind(bind_addr)
|
||||
self._zmq_pull_stream = ZMQStream(self._zmq_pull_socket)
|
||||
LOG.debug('Pull socket bound to %s', bind_addr)
|
||||
|
||||
def register_callback(self, callback):
|
||||
callback = with_deserialize_tfw_msg(callback) if callback else None
|
||||
@ -42,7 +41,6 @@ class ZMQUplinkListener:
|
||||
self._zmq_pub_socket = zmq.Context.instance().socket(zmq.PUB)
|
||||
self._zmq_pub_socket.setsockopt(zmq.SNDHWM, 0)
|
||||
self._zmq_pub_socket.bind(bind_addr)
|
||||
LOG.debug('Pub socket bound to %s', bind_addr)
|
||||
|
||||
def send_message(self, message: dict):
|
||||
self._zmq_pub_socket.send_multipart(serialize_tfw_msg(message))
|
||||
|
Reference in New Issue
Block a user