Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
refactor(service): minimize event loop, move handling to handler
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Sep 6, 2019
1 parent f5dac7a commit a8e87d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnes/service/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def _hook_debug_msg(self, msg: 'gnes_pb2.Message', *args, **kwargs):
def _hook_add_route(self, msg: 'gnes_pb2.Message', *args, **kwargs):
add_route(msg.envelope, self._model.__class__.__name__)
self._msg_old_type = msg.WhichOneof('body')
self.logger.info('handling a message with route: %s using handler %s' % (router2str(msg), fn.__name__))
self.logger.info('a message with route: %s' % router2str(msg))


@zmqd.context()
Expand Down

0 comments on commit a8e87d9

Please sign in to comment.