invidious-companion-patches/patches/0019-chore-sets-a-default-timeout-of-30-seconds-on-reques.patch
Fijxu a5b522acf2
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m0s
add 0020
2025-04-22 17:01:06 -04:00

25 lines
901 B
Diff

From 9688a2949e7a1c1894da082d6a3d50ca9f93734f Mon Sep 17 00:00:00 2001
From: Fijxu <fijxu@nadeko.net>
Date: Tue, 22 Apr 2025 15:47:41 -0400
Subject: [PATCH 19/20] chore: sets a default timeout of 30 seconds on requests
---
src/lib/helpers/config.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/helpers/config.ts b/src/lib/helpers/config.ts
index 602e460..4b57a4f 100644
--- a/src/lib/helpers/config.ts
+++ b/src/lib/helpers/config.ts
@@ -32,7 +32,7 @@ export const ConfigSchema = z.object({
ump: z.boolean().default(false),
proxy: z.string().nullable().default(Deno.env.get("PROXY") || null),
fetch: z.object({
- timeout_ms: z.number().optional(),
+ timeout_ms: z.number().default(30_000),
retry: z.object({
enabled: z.boolean(),
times: z.number().optional(),
--
2.49.0