Skip to content

Commit 2c99beb

Browse files
Martin Asell1st1
Martin Asell
authored andcommitted
Add back ensure future for connector
1 parent ae7c110 commit 2c99beb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

asyncpg/connect_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ async def _connect_addr(*, addr, loop, timeout, params, config,
615615
else:
616616
connector = loop.create_connection(proto_factory, *addr)
617617

618+
connector = asyncio.ensure_future(connector)
618619
before = time.monotonic()
619620
try:
620621
tr, pr = await asyncio.wait_for(

0 commit comments

Comments
 (0)