✨ Try downloading up to 10 times
This commit is contained in:
parent
bbbc2510f5
commit
2b840abc9a
1 changed files with 2 additions and 2 deletions
|
@ -21,8 +21,8 @@ export default async function downloadWrapper({ host, path, size }: {host: strin
|
||||||
}
|
}
|
||||||
|
|
||||||
//Download via curl
|
//Download via curl
|
||||||
//Try up to three times
|
//Try up to ten times
|
||||||
for (let i = 0; i < 3; i += 1) {
|
for (let i = 0; i < 10; i += 1) {
|
||||||
try {
|
try {
|
||||||
const downloadResult = await downloadWithCurl({ host, path, tempFileName });
|
const downloadResult = await downloadWithCurl({ host, path, tempFileName });
|
||||||
return downloadResult;
|
return downloadResult;
|
||||||
|
|
Loading…
Reference in a new issue