chore(fetcher): double queue limit and timeouts

This commit is contained in:
WebStreamr 2025-09-24 18:04:00 +00:00
parent 4c5f5a3514
commit 4697d150cf
No known key found for this signature in database

View file

@ -58,8 +58,8 @@ export type CustomRequestInit = RequestInit & {
export class Fetcher {
private readonly MIN_CACHE_TTL = 900000; // 15m
private readonly DEFAULT_TIMEOUT = 10000;
private readonly DEFAULT_QUEUE_LIMIT = 5;
private readonly DEFAULT_QUEUE_TIMEOUT = 5000;
private readonly DEFAULT_QUEUE_LIMIT = 10;
private readonly DEFAULT_QUEUE_TIMEOUT = 10000;
private readonly DEFAULT_TIMEOUTS_COUNT_THROW = 30;
private readonly TIMEOUT_CACHE_TTL = 3600000; // 1h
private readonly MAX_WAIT_RETRY_AFTER = 10000;