From bb863ba51ad585ed91f53c55fd52a248fce94579 Mon Sep 17 00:00:00 2001 From: georgedouzas Date: Fri, 5 Jul 2024 16:30:10 +0300 Subject: [PATCH] chore: Remove multi-threading connection limit --- src/sportsbet/datasets/_soccer/_utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/sportsbet/datasets/_soccer/_utils.py b/src/sportsbet/datasets/_soccer/_utils.py index 8bb0e40..01216aa 100644 --- a/src/sportsbet/datasets/_soccer/_utils.py +++ b/src/sportsbet/datasets/_soccer/_utils.py @@ -66,7 +66,6 @@ < OVER_UNDER[3], ), ] -CONNECTIONS_LIMIT = 20 async def _read_url_content_async(client: aiohttp.ClientSession, url: str) -> str: @@ -80,7 +79,6 @@ async def _read_urls_content_async(urls: list[str]) -> list[str]: """Read asynchronously the URLs content.""" async with aiohttp.ClientSession( raise_for_status=True, - connector=aiohttp.TCPConnector(limit=CONNECTIONS_LIMIT), ) as client: futures = [_read_url_content_async(client, url) for url in urls] return await asyncio.gather(*futures)