1
0
Fork 0
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:
Eelco Dolstra 2016-08-30 15:48:24 +02:00
parent 97b1af1cbe
commit 6631a6e1a1
3 changed files with 4 additions and 2 deletions

View file

@ -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) {