queryMissing(): Use a bigger thread pool

This is a temporary hack until we make queryMissing() async.

Closes #5324.
This commit is contained in:
Eelco Dolstra 2021-12-13 21:08:42 +01:00
parent ade870764a
commit 95bd5da341

View file

@ -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
{