Refactor ServerUplinkConnector to avoid passing redundant data

This commit is contained in:
Kristóf Tóth
2018-02-28 15:57:44 +01:00
parent 9eaced9f02
commit e29b300925
5 changed files with 5 additions and 10 deletions

View File

@ -26,6 +26,7 @@ class ServerUplinkConnector(ZMQConnectorBase):
self._zmq_push_socket.connect('tcp://localhost:{}'.format(tfwenv.RECEIVER_PORT))
def send(self, key, response):
response['key'] = key
self._zmq_push_socket.send_multipart(serialize_all(key, response))