mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-23 02: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 = self._zmq_context.socket(zmq.PUSH)
|
||||||
self._zmq_push_socket.connect('tcp://localhost:{}'.format(tfwenv.RECEIVER_PORT))
|
self._zmq_push_socket.connect('tcp://localhost:{}'.format(tfwenv.RECEIVER_PORT))
|
||||||
|
|
||||||
def send_to_eventhandler(self, key, response):
|
def send_to_eventhandler(self, key, message):
|
||||||
response['data']['key'] = key
|
message['data']['key'] = key
|
||||||
self.send('mirror', response)
|
self.send('mirror', message)
|
||||||
|
|
||||||
def send(self, key, response):
|
def send(self, key, message):
|
||||||
response['key'] = key
|
message['key'] = key
|
||||||
self._zmq_push_socket.send_multipart(serialize_all(key, response))
|
self._zmq_push_socket.send_multipart(serialize_all(key, message))
|
||||||
|
|
||||||
|
|
||||||
class ServerConnector(ServerUplinkConnector, ServerDownlinkConnector):
|
class ServerConnector(ServerUplinkConnector, ServerDownlinkConnector):
|
||||||
|
Loading…
Reference in New Issue
Block a user