Refactor ServerUplinkConnector to use new serializers

This commit is contained in:
Kristóf Tóth 2018-04-13 16:35:30 +02:00
parent 67a23166c6
commit cd36b6c22c

View File

@ -6,7 +6,7 @@ from functools import partial
import zmq
from zmq.eventloop.zmqstream import ZMQStream
from tfw.networking import serialize_all
from tfw.networking import serialize_tfw_msg
from tfw.networking import ZMQConnectorBase
from tfw.config import TFWENV
@ -35,7 +35,7 @@ class ServerUplinkConnector(ZMQConnectorBase):
self.send(message)
def send(self, message):
self._zmq_push_socket.send_multipart(serialize_all(message['key'], message))
self._zmq_push_socket.send_multipart(serialize_tfw_msg(message))
class ServerConnector(ServerUplinkConnector, ServerDownlinkConnector):