Skip to content

Commit

Permalink
chore: Remove multi-threading connection limit
Browse files Browse the repository at this point in the history
  • Loading branch information
georgedouzas committed Jul 5, 2024
1 parent eca50be commit bb863ba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/sportsbet/datasets/_soccer/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
< OVER_UNDER[3],
),
]
CONNECTIONS_LIMIT = 20


async def _read_url_content_async(client: aiohttp.ClientSession, url: str) -> str:
Expand All @@ -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)
Expand Down

0 comments on commit bb863ba

Please sign in to comment.