Skip to content
Permalink
Browse files

fix(parser): fix default dump interval to 5

  • Loading branch information...
hanxiao committed Sep 12, 2019
1 parent 686bd01 commit c31f21dbba9964d6051203c90c7fb3f01635bfb0
Showing with 2 additions and 4 deletions.
  1. +2 −4 gnes/service/base.py
@@ -317,9 +317,7 @@ def _auto_dump(self):
self.logger.info(
'auto-dumping the new change of the model every %ds...' % self.args.dump_interval)
self.dump()
time.sleep(self.args.dump_interval)
else:
time.sleep(1)
time.sleep(self.args.dump_interval)

def dump(self):
if not self.args.read_only:
@@ -334,7 +332,7 @@ def dump(self):
def _hook_warn_body_type_change(self, msg: 'gnes_pb2.Message', *args, **kwargs):
new_type = msg.WhichOneof('body')
if new_type != self._msg_old_type:
self.logger.warning('message body type has changed from %s to %s' % (self._msg_old_type, new_type))
self.logger.warning('message body type has changed from "%s" to "%s"' % (self._msg_old_type, new_type))

@handler.register_hook(hook_type='post')
def _hook_sort_response(self, msg: 'gnes_pb2.Message', *args, **kwargs):

0 comments on commit c31f21d

Please sign in to comment.
You can’t perform that action at this time.