Refactor callback subscription stuff to a mixin

This commit is contained in:
Kristóf Tóth
2018-03-07 10:12:58 +01:00
parent 6db4c80671
commit 6a6236e704
5 changed files with 29 additions and 21 deletions

View File

@ -14,7 +14,7 @@ class TFWServer:
self._fsm = fsm_type()
self._fsm_updater = FSMUpdater(self._fsm)
self._fsm_manager = FSMManager(self._fsm)
self._fsm.subscribe(self._fsm_updater.update)
self._fsm.subscribe_callback(self._fsm_updater.update)
self.application = Application(
[(r'/ws', ZMQWebSocketProxy, {'make_response': self.make_response,