mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 11:36:03 +01:00
Merge pull request #14373 from NixOS/copy-sigs-parallel
nix store copy-sigs: Use http-connections setting to control parallelism
This commit is contained in:
commit
d44b33562f
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include "nix/main/shared.hh"
|
||||
#include "nix/store/store-open.hh"
|
||||
#include "nix/util/thread-pool.hh"
|
||||
#include "nix/store/filetransfer.hh"
|
||||
|
||||
#include <atomic>
|
||||
|
||||
|
|
@ -38,7 +39,7 @@ struct CmdCopySigs : StorePathsCommand
|
|||
for (auto & s : substituterUris)
|
||||
substituters.push_back(openStore(s));
|
||||
|
||||
ThreadPool pool;
|
||||
ThreadPool pool{fileTransferSettings.httpConnections};
|
||||
|
||||
std::atomic<size_t> added{0};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue