mirror of
https://github.com/NixOS/nix.git
synced 2025-11-19 08:49:35 +01:00
Dedup LocalStore::addToStore*
The downsides is that the coroutine has byte-by-byte loop transfer. Will fix that next.
This commit is contained in:
parent
c86fc3a965
commit
9de96ef7d4
2 changed files with 25 additions and 62 deletions
|
|
@ -290,6 +290,10 @@ private:
|
|||
specified by the ‘secret-key-files’ option. */
|
||||
void signPathInfo(ValidPathInfo & info);
|
||||
|
||||
StorePath addToStoreCommon(
|
||||
const string & name, FileIngestionMethod method, HashType hashAlgo, RepairFlag repair,
|
||||
std::function<void(Sink &)> demux);
|
||||
|
||||
Path getRealStoreDir() override { return realStoreDir; }
|
||||
|
||||
void createUser(const std::string & userName, uid_t userId) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue