chore(fetcher): increase default timeout to 15s

in most of the cases we're still very fast anyway
but in some of the small cases let's avoid timeout blocks by waiting
longer
This commit is contained in:
WebStreamr 2025-08-05 10:01:30 +00:00
parent 086c32f980
commit 009bb930b5
No known key found for this signature in database

View file

@ -54,7 +54,7 @@ export type CustomRequestInit = RequestInit & {
export class Fetcher {
private readonly MIN_CACHE_TTL = 900000; // 15m
private readonly DEFAULT_TIMEOUT = 10000;
private readonly DEFAULT_TIMEOUT = 15000;
private readonly DEFAULT_QUEUE_LIMIT = 5;
private readonly DEFAULT_QUEUE_TIMEOUT = 5000;
private readonly DEFAULT_FAILED_REQUEST_COUNT_THROW = 10;