Skip to content

Commit

Permalink
Fixed errors with json_rpc and coroutines
Browse files Browse the repository at this point in the history
  • Loading branch information
tknot committed Mar 5, 2018
1 parent c172c6e commit a19b057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornadorpc_evok/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def prepare(self):
self._RPC_.traceback()
self._error = self._RPC_.faults.parse_error()

#@tornado.web.asynchronous
@tornado.web.asynchronous
@gen.coroutine
def post(self):
# Dispatches request methods
Expand Down

1 comment on commit a19b057

@tknot
Copy link
Contributor Author

@tknot tknot commented on a19b057 Mar 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is due to an update to the underlying Tornado library, which breaks mixing coroutines and plain futures (only futures work fine) without the async decorator

Please sign in to comment.