Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit fd3217e

Browse files
committed
receive_call isn't a coroutine
1 parent 9d45b7c commit fd3217e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tchannel/tornado/tchannel.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,13 @@ def is_listening(self):
270270

271271
return False
272272

273-
@tornado.gen.coroutine
274273
def receive_call(self, message, connection):
275274
if not self._handler:
276275
log.warn(
277276
"Received %s but a handler has not been defined.", str(message)
278277
)
279278
return
280-
self._handler.handle(message, connection)
279+
return self._handler.handle(message, connection)
281280

282281
def _register_simple(self, endpoint, scheme, f):
283282
"""Register a simple endpoint with this TChannel.

0 commit comments

Comments
 (0)