Skip to content

Commit

Permalink
Set global HTTP session timeout to 30s (#230)
Browse files Browse the repository at this point in the history
Hopefully this helps fix https://vipyrsec.sentry.io/issues/5052320225

Signed-off-by: Bradley Reynolds <[email protected]>
  • Loading branch information
shenanigansd authored Mar 28, 2024
1 parent 49996ac commit 5c2f54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_prefix(bot_: Bot, message_: discord.Message) -> Callable[[Bot, discord.M

async def main() -> None:
"""Run the bot."""
async with ClientSession(headers={"Content-Type": "application/json"}, timeout=ClientTimeout(total=10)) as session:
async with ClientSession(headers={"Content-Type": "application/json"}, timeout=ClientTimeout(total=30)) as session:
dragonfly_services = DragonflyServices(
session=session,
base_url=constants.Dragonfly.base_url,
Expand Down

0 comments on commit 5c2f54f

Please sign in to comment.