mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 16:01:32 +00:00
Rename response -> message in ServerConnector classes
This commit is contained in:
parent
abeb12858e
commit
f354fd73dc
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user