mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 19:31:33 +00:00
Refactor ServerUplinkConnector to use new serializers
This commit is contained in:
parent
67a23166c6
commit
cd36b6c22c
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user