Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove loop argument from asyncio calls #311

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions aioelasticsearch/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(
# store all strategies...
self.connection_pool_class = connection_pool_class
self.connection_class = connection_class
self._connection_pool_lock = asyncio.Lock(loop=self.loop)
self._connection_pool_lock = asyncio.Lock()

# ...save kwargs to be passed to the connections
self.kwargs = kwargs
Expand Down Expand Up @@ -219,7 +219,7 @@ async def _initial_sniff_wrapper():

coros.append(self.connection_pool.close())

await asyncio.gather(*coros, loop=self.loop)
await asyncio.gather(*coros)
self._closed = True

async def get_connection(self):
Expand Down