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

Commit

Permalink
Merge pull request #279 from gnes-ai/dump-frontend-route
Browse files Browse the repository at this point in the history
fix(frontend): flush dump
  • Loading branch information
Han Xiao authored Sep 24, 2019
2 parents c995579 + 7c276f0 commit 91e52b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ Highlights

api/gnes

.. toctree::
:maxdepth: 1
:caption: Miscs

chapter/troubleshooting.md
chapter/protobuf-dev.md

.. toctree::
:maxdepth: 2
Expand All @@ -83,13 +89,6 @@ Tutorials
🚧 Tutorial is still under construction. Stay tuned! Meanwhile, we sincerely welcome you to contribute your own learning experience / case study with GNES!


.. toctree::
:maxdepth: 1
:caption: Miscs

chapter/troubleshooting.md
chapter/protobuf-dev.md


Indices and tables
==================
Expand Down
1 change: 1 addition & 0 deletions gnes/service/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def remove_envelope(self, m: 'gnes_pb2.Message'):
self.logger.info('route table: \n%s' % make_route_table(m.envelope.routes, exclude_frontend=True))
if self.args.dump_route:
self.args.dump_route.write(MessageToJson(m.envelope, indent=0).replace('\n', '') + '\n')
self.args.dump_route.flush()
return resp

def Call(self, request, context):
Expand Down

0 comments on commit 91e52b1

Please sign in to comment.