Skip to content

Commit

Permalink
increase timeout to half an hour
Browse files Browse the repository at this point in the history
  • Loading branch information
ToasterUwU committed Aug 12, 2024
1 parent f72f9c0 commit aedc57e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cogs/torrent_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ async def create_torrent(self, file_url: str):
if "?" in filename:
filename = filename.split("?", 1)[0]

async with aiohttp.ClientSession() as session:
async with aiohttp.ClientSession(
timeout=aiohttp.ClientTimeout(total=1800)
) as session:
async with session.get(file_url) as resp:
async with aiofiles.open(
"./temp/" + filename,
Expand Down

0 comments on commit aedc57e

Please sign in to comment.