Skip to content

Commit

Permalink
Also include the RPC result in the JSON dump (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
ESultanik committed Mar 27, 2019
1 parent 18c17e2 commit 096883d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etheno/jsonrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ def __init__(self, out_stream: Union[str, TextIO]):
self._output.write('[')
self._count = 0

def before_post(self, post_data):
def after_post(self, post_data, client_results):
if self._count > 0:
self._output.write(',')
self._count += 1
self._output.write('\n')
json.dump(post_data, self._output)
json.dump([post_data, client_results], self._output)
self._output.flush()

def finalize(self):
Expand Down

0 comments on commit 096883d

Please sign in to comment.