From 9f9332d506104768bfed31e4f5328f6a814c53b8 Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Thu, 16 Nov 2023 14:21:44 +0100 Subject: [PATCH] Removed unused maxrefreshinterval, base it on failure count instead --- src/repository/index.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/repository/index.ts b/src/repository/index.ts index 01ba7bb9..9552a1f4 100644 --- a/src/repository/index.ts +++ b/src/repository/index.ts @@ -58,8 +58,6 @@ export default class Repository extends EventEmitter implements EventEmitter { private failures: number = 0; - private maxRefreshInterval: number; - private customHeadersFunction?: CustomHeadersFunction; private timeout?: number; @@ -94,7 +92,6 @@ export default class Repository extends EventEmitter implements EventEmitter { instanceId, projectName, refreshInterval = 15_000, - maxRefreshInterval = 120_000, timeout, headers, customHeadersFunction, @@ -121,7 +118,6 @@ export default class Repository extends EventEmitter implements EventEmitter { this.bootstrapOverride = bootstrapOverride; this.storageProvider = storageProvider; this.segments = new Map(); - this.maxRefreshInterval = maxRefreshInterval; } timedFetch(interval: number) {