Skip to content

Commit

Permalink
chore(release): 0.2.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurice Faber committed Dec 7, 2021
1 parent 6187c57 commit 9177088
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,13 @@ type WaitTillAvailableOptions =
| Options & {
confirmations?: number
status?: number
skipSsl?: boolean
}

const defaultOptions: WaitTillAvailableOptions = {
factor: 2,
confirmations: 10,
retries: 50,
status: 200,
skipSsl: false,
minTimeout: 1000,
maxTimeout: 30000,
}
Expand Down Expand Up @@ -104,6 +102,7 @@ export const waitTillAvailable = async (url: string, opts?: WaitTillAvailableOpt
// if we get a 404 or 503 we know some changes in either nginx or istio might still not be ready
if (res.status !== 404 && res.status !== 503) {
// but any other status code that is not the desired one tells us to stop retrying
// early bail points to errors, so better to know asap
bail(err)
} else throw err
} else {
Expand Down

0 comments on commit 9177088

Please sign in to comment.