mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
move the parallel-compression setting to binary-cache-store, the setting
can be done now from the url e.g s3://nix-cache?parallel-compression=1 instead of nix.conf.
This commit is contained in:
parent
55ecdfe2a8
commit
47ad88099b
3 changed files with 3 additions and 4 deletions
|
@ -149,7 +149,7 @@ void BinaryCacheStore::addToStore(const ValidPathInfo & info, const ref<std::str
|
|||
/* Compress the NAR. */
|
||||
narInfo->compression = compression;
|
||||
auto now1 = std::chrono::steady_clock::now();
|
||||
auto narCompressed = compress(compression, *nar, settings.parallelCompression);
|
||||
auto narCompressed = compress(compression, *nar, parallelCompression);
|
||||
auto now2 = std::chrono::steady_clock::now();
|
||||
narInfo->fileHash = hashString(htSHA256, *narCompressed);
|
||||
narInfo->fileSize = narCompressed->size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue