1
0
mirror of synced 2025-12-30 03:01:36 -05:00

don't wait forever

This commit is contained in:
Evan Bonsignori
2022-08-18 11:16:59 -07:00
parent 931bb63733
commit 7e198d5348

View File

@@ -13,7 +13,7 @@ export async function waitUntilUrlIsHealthy(url) {
await got.head(url, {
retry: {
limit: RETRIES,
calculateDelay: () => DELAY_SECONDS * 1000,
calculateDelay: ({ computedValue }) => Math.min(computedValue, DELAY_SECONDS * 1000),
},
})
return true