1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-17 16:02:43 +01:00

DownloadSettings -> DataTransferSettings

This commit is contained in:
Nikola Knezevic 2020-04-06 15:14:49 +02:00
parent 741e9012d3
commit e5cc53beec
3 changed files with 14 additions and 14 deletions

View file

@ -9,7 +9,7 @@
namespace nix {
struct DownloadSettings : Config
struct DataTransferSettings : Config
{
Setting<bool> enableHttp2{this, true, "http2",
"Whether to enable HTTP/2 support."};
@ -31,7 +31,7 @@ struct DownloadSettings : Config
"How often Nix will attempt to download a file before giving up."};
};
extern DownloadSettings downloadSettings;
extern DataTransferSettings dataTransferSettings;
struct DataTransferRequest
{
@ -39,7 +39,7 @@ struct DataTransferRequest
std::string expectedETag;
bool verifyTLS = true;
bool head = false;
size_t tries = downloadSettings.tries;
size_t tries = dataTransferSettings.tries;
unsigned int baseRetryTimeMs = 250;
ActivityId parentAct;
bool decompress = true;