mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
Increase the sleep time between download retries
This commit is contained in:
parent
97b1af1cbe
commit
6631a6e1a1
3 changed files with 4 additions and 2 deletions
|
@ -80,7 +80,8 @@ protected:
|
|||
auto downloader(downloaders.get());
|
||||
DownloadOptions options;
|
||||
options.showProgress = DownloadOptions::no;
|
||||
options.tries = 3;
|
||||
options.tries = 5;
|
||||
options.baseRetryTimeMs = 1000;
|
||||
try {
|
||||
return downloader->download(cacheUri + "/" + path, options).data;
|
||||
} catch (DownloadError & e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue