Skip to content

Commit 9563a42

Browse files
authored
Merge pull request #40 from annatisch/debug
Added async worker back
2 parents 55da4d0 + 8146883 commit 9563a42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

uamqp/async_ops/connection_async.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import asyncio
88
import logging
9+
import functools
910

1011
import uamqp
1112
from uamqp import c_uamqp
@@ -132,7 +133,7 @@ async def work_async(self):
132133
raise
133134
try:
134135
await self.lock_async()
135-
self._conn.do_work()
136+
await self.loop.run_in_executor(None, functools.partial(self._conn.do_work))
136137
except asyncio.TimeoutError:
137138
_logger.debug("Connection %r timed out while waiting for lock acquisition.", self.container_id)
138139
finally:

0 commit comments

Comments
 (0)