mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 08:01:31 +00:00
Use subscribe method from super, instead of using duplicated code
This commit is contained in:
parent
92394cac27
commit
9d299a5f3e
@ -26,9 +26,7 @@ class StatefulEventHandler(EventHandlerBase):
|
||||
except StopIteration:
|
||||
self.reset()
|
||||
return
|
||||
if response_anchor not in self.subscriptions:
|
||||
self.subscriptions.add(response_anchor)
|
||||
self.zmq_sub_socket.setsockopt_string(zmq.SUBSCRIBE, response_anchor)
|
||||
self.subscribe(response_anchor)
|
||||
response_data = json.dumps({
|
||||
'anchor': response_anchor,
|
||||
'data': response_data,
|
||||
|
Loading…
Reference in New Issue
Block a user