aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/builtins
diff options
context:
space:
mode:
authorNikola Knezevic <nikola@knezevic.ch>2020-04-06 22:57:09 +0200
committerNikola Knezevic <nikola@knezevic.ch>2020-04-08 22:26:57 +0200
commitcd391206e6d29608bc3e25301b9921f1ac189086 (patch)
tree94f67ad06388bbc2406359091c8ee3766e38789a /src/libstore/builtins
parent2df2741ec6e9411739b2049d7487b7b8a26d4547 (diff)
{get,make,new}Downloader -> DataTransfer
Diffstat (limited to 'src/libstore/builtins')
-rw-r--r--src/libstore/builtins/fetchurl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/builtins/fetchurl.cc b/src/libstore/builtins/fetchurl.cc
index 01d21fa98..0b6db8f0c 100644
--- a/src/libstore/builtins/fetchurl.cc
+++ b/src/libstore/builtins/fetchurl.cc
@@ -26,9 +26,9 @@ void builtinFetchurl(const BasicDerivation & drv, const std::string & netrcData)
auto mainUrl = getAttr("url");
bool unpack = get(drv.env, "unpack").value_or("") == "1";
- /* Note: have to use a fresh downloader here because we're in
+ /* Note: have to use a fresh dataTransfer here because we're in
a forked process. */
- auto downloader = makeDownloader();
+ auto dataTransfer = makeDataTransfer();
auto fetch = [&](const std::string & url) {
@@ -42,7 +42,7 @@ void builtinFetchurl(const BasicDerivation & drv, const std::string & netrcData)
auto decompressor = makeDecompressionSink(
unpack && hasSuffix(mainUrl, ".xz") ? "xz" : "none", sink);
- downloader->download(std::move(request), *decompressor);
+ dataTransfer->download(std::move(request), *decompressor);
decompressor->finish();
});