Refactor 'mirror' message enveloping to use new serialization

This commit is contained in:
Kristóf Tóth
2018-04-13 19:57:04 +02:00
parent aabaadc4c4
commit 9eb6717972
4 changed files with 11 additions and 11 deletions

View File

@ -30,8 +30,9 @@ class ServerUplinkConnector(ZMQConnectorBase):
self._zmq_push_socket.connect('tcp://localhost:{}'.format(TFWENV.RECEIVER_PORT))
def send_to_eventhandler(self, message):
message['data']['key'] = message['key']
nested_message = {'key': message['key'], 'data': message.pop('data')}
message['key'] = 'mirror'
message['data'] = nested_message
self.send(message)
def send(self, message):