mirror of
https://github.com/glomatico/gamdl.git
synced 2026-06-13 12:15:18 +03:00
Reduce concurrency limit in safe_gather
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ async def async_subprocess(*args: str, silent: bool = False) -> None:
|
||||
|
||||
async def safe_gather(
|
||||
*tasks: typing.Awaitable[typing.Any],
|
||||
limit: int = 5,
|
||||
limit: int = 3,
|
||||
retries: int = 3,
|
||||
) -> list[typing.Any]:
|
||||
semaphore = asyncio.Semaphore(limit)
|
||||
|
||||
Reference in New Issue
Block a user