aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-12-13 21:08:42 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-12-13 21:11:37 +0100
commit95bd5da341aec4b99f4719d1b1ab2343ee14fad7 (patch)
treeba6499b131f1ac730009ac58e6a137eac6e743b6 /src
parentade870764a9e961c41d7adc41823b6b99bde1bff (diff)
queryMissing(): Use a bigger thread pool
This is a temporary hack until we make queryMissing() async. Closes #5324.
Diffstat (limited to 'src')
-rw-r--r--src/libstore/misc.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/misc.cc b/src/libstore/misc.cc
index 32786e963..6409874ff 100644
--- a/src/libstore/misc.cc
+++ b/src/libstore/misc.cc
@@ -7,6 +7,7 @@
#include "topo-sort.hh"
#include "callback.hh"
#include "closure.hh"
+#include "filetransfer.hh"
namespace nix {
@@ -100,7 +101,8 @@ void Store::queryMissing(const std::vector<DerivedPath> & targets,
downloadSize_ = narSize_ = 0;
- ThreadPool pool;
+ // FIXME: make async.
+ ThreadPool pool(fileTransferSettings.httpConnections);
struct State
{