Skip to content

Commit 12c5e8a

Browse files
committed
Added a custom event loop for RPC client in run() method call
1 parent b9b5c3f commit 12c5e8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sage_utils/amqp/workers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ async def run(self, *args, loop=None, **kwargs):
3333
routing_key=self.REQUEST_QUEUE_NAME,
3434
request_exchange=self.REQUEST_EXCHANGE_NAME,
3535
response_queue='',
36-
response_exchange=self.RESPONSE_EXCHANGE_NAME
36+
response_exchange=self.RESPONSE_EXCHANGE_NAME,
37+
loop=loop
3738
)
3839

3940
is_registered = False

0 commit comments

Comments
 (0)