Skip to content

Commit

Permalink
update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Dec 19, 2022
1 parent f6c35cf commit ba9339f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/proxy/lib/http/util/prerequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class PreRequests {
requestTimeout: number
pendingPreRequests = new StackMap<PendingPreRequest>()
pendingRequests = new StackMap<PendingRequest>()
sweepIntervalId: NodeJS.Timeout
sweepIntervalTimer: NodeJS.Timeout
sweepInterval = 1000 * 10 // 10 seconds

constructor (requestTimeout = 500) {
Expand All @@ -95,7 +95,7 @@ export class PreRequests {
// make sure we don't discard any pre-requests prematurely but that we don't leak memory over time
// if a large number of pre-requests don't match up
// fixes: https://github.com/cypress-io/cypress/issues/17853
this.sweepIntervalId = setInterval(() => {
this.sweepIntervalTimer = setInterval(() => {
const now = Date.now()

this.pendingPreRequests.removeMatching(({ timestamp, browserPreRequest }) => {
Expand Down

0 comments on commit ba9339f

Please sign in to comment.