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

Commit

Permalink
fix(parser): fix default dump interval to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Sep 12, 2019
1 parent 686bd01 commit c31f21d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gnes/service/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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):
Expand Down

0 comments on commit c31f21d

Please sign in to comment.