diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-08-25T15·49+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-08-25T15·49+0200 |
commit | c137c0a5ebc0d58c53f86986ab66967ac8629cbe (patch) | |
tree | 38e01bef5549985449a4c911c1444758d585335f /src/libstore/download.hh | |
parent | f194629f96d4bdbded897e7e88ac0d03211c959d (diff) |
Allow activities to be nested
In particular, this allows more relevant activities ("substituting X") to supersede inferior ones ("downloading X").
Diffstat (limited to 'src/libstore/download.hh')
-rw-r--r-- | src/libstore/download.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/download.hh b/src/libstore/download.hh index 7d8982d64c4c..752bf3723cfc 100644 --- a/src/libstore/download.hh +++ b/src/libstore/download.hh @@ -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 |