1
0
Fork 0
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:
AmineChikhaoui 2018-02-07 21:06:11 +01:00
parent 55ecdfe2a8
commit 47ad88099b
No known key found for this signature in database
GPG key ID: C0C8C84C15BCCD1C
3 changed files with 3 additions and 4 deletions

View file

@ -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();