Skip to content

Commit

Permalink
Removed unused maxrefreshinterval, base it on failure count instead
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Nov 16, 2023
1 parent 0549a2e commit 9f9332d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/repository/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -94,7 +92,6 @@ export default class Repository extends EventEmitter implements EventEmitter {
instanceId,
projectName,
refreshInterval = 15_000,
maxRefreshInterval = 120_000,
timeout,
headers,
customHeadersFunction,
Expand All @@ -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) {
Expand Down

0 comments on commit 9f9332d

Please sign in to comment.