Skip to content

Commit

Permalink
refactor: remove leftovers (#2451)
Browse files Browse the repository at this point in the history
  • Loading branch information
metcoder95 committed Nov 22, 2023
1 parent 99c38c6 commit 039fa15
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions lib/handler/RetryHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,29 +278,6 @@ class RetryHandler {
headers,
count: this.retryCount
})
// Meant to just indicate weather or not trigger a retry
// It should return null to indicate we exhausted the retries
const retryAfter = this.retryOpts.retry(
err,
{ counter: this.retryCount, currentTimeout: this.retryAfter },
{ retry: this.retryOpts, ...this.opts }
)

assert(
retryAfter == null || Number.isFinite(retryAfter),
'invalid retryAfter'
)

if (retryAfter == null) {
return this.handler.onHeaders(
statusCode,
rawHeaders,
resume,
statusMessage
)
}

this.retryAfter = retryAfter

this.abort(err)

Expand Down

0 comments on commit 039fa15

Please sign in to comment.