Skip to content
Merged
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
3 changes: 2 additions & 1 deletion ydb/aio/query/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def __init__(
size: int = 100,
*,
query_client_settings: Optional[QueryClientSettings] = None,
loop: Optional[asyncio.AbstractEventLoop] = None,
):
"""
:param driver: A driver instance
Expand All @@ -42,7 +43,7 @@ def __init__(
self._queue = asyncio.Queue()
self._current_size = 0
self._waiters = 0
self._loop = asyncio.get_running_loop()
self._loop = asyncio.get_running_loop() if loop is None else loop
self._query_client_settings = query_client_settings

async def _create_new_session(self):
Expand Down
Loading