Skip to content

Commit

Permalink
Don't pass loop arg to asyncio.open_connection
Browse files Browse the repository at this point in the history
Fix NoneGG#212. Required for Python 3.10+.
  • Loading branch information
MarSoft authored Mar 31, 2022
1 parent b46e671 commit b512523
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aredis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,7 @@ async def _connect(self):
reader, writer = await exec_with_timeout(
asyncio.open_connection(host=self.host,
port=self.port,
ssl=self.ssl_context,
loop=self.loop),
ssl=self.ssl_context),
self._connect_timeout,
loop=self.loop
)
Expand Down

0 comments on commit b512523

Please sign in to comment.