Rename response -> message in ServerConnector classes

This commit is contained in:
Kristóf Tóth 2018-03-14 16:11:27 +01:00
parent abeb12858e
commit f354fd73dc

View File

@ -25,13 +25,13 @@ class ServerUplinkConnector(ZMQConnectorBase):
self._zmq_push_socket = self._zmq_context.socket(zmq.PUSH)
self._zmq_push_socket.connect('tcp://localhost:{}'.format(tfwenv.RECEIVER_PORT))
def send_to_eventhandler(self, key, response):
response['data']['key'] = key
self.send('mirror', response)
def send_to_eventhandler(self, key, message):
message['data']['key'] = key
self.send('mirror', message)
def send(self, key, response):
response['key'] = key
self._zmq_push_socket.send_multipart(serialize_all(key, response))
def send(self, key, message):
message['key'] = key
self._zmq_push_socket.send_multipart(serialize_all(key, message))
class ServerConnector(ServerUplinkConnector, ServerDownlinkConnector):