From 5bfe2f800b372d6ca5ca9d42f307c77bede3d4e5 Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Thu, 29 May 2025 18:32:06 +0000 Subject: [PATCH] chore(fetcher): reduce timeout to 5s --- src/utils/Fetcher.test.ts | 2 +- src/utils/Fetcher.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/Fetcher.test.ts b/src/utils/Fetcher.test.ts index 0cd7c25..93fef98 100644 --- a/src/utils/Fetcher.test.ts +++ b/src/utils/Fetcher.test.ts @@ -38,7 +38,7 @@ describe('fetch', () => { 'X-Real-IP': '127.0.0.1', }, responseType: 'text', - timeout: 15000, + timeout: 5000, }, ); }); diff --git a/src/utils/Fetcher.ts b/src/utils/Fetcher.ts index b73429c..c70ab15 100644 --- a/src/utils/Fetcher.ts +++ b/src/utils/Fetcher.ts @@ -40,7 +40,7 @@ export class Fetcher { return { responseType: 'text', - timeout: 15000, + timeout: 5000, ...config, headers: { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',