mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Allow activities to be nested
In particular, this allows more relevant activities ("substituting X") to supersede inferior ones ("downloading X").
This commit is contained in:
parent
f194629f96
commit
c137c0a5eb
7 changed files with 55 additions and 12 deletions
|
@ -16,8 +16,10 @@ struct DownloadRequest
|
|||
bool head = false;
|
||||
size_t tries = 5;
|
||||
unsigned int baseRetryTimeMs = 250;
|
||||
ActivityId parentAct;
|
||||
|
||||
DownloadRequest(const std::string & uri) : uri(uri) { }
|
||||
DownloadRequest(const std::string & uri)
|
||||
: uri(uri), parentAct(curActivity) { }
|
||||
};
|
||||
|
||||
struct DownloadResult
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue