mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
WIP systematize more of the worker protocol
This refactor should *not* change the wire protocol.
This commit is contained in:
parent
fbeb8695fb
commit
2f2ae993dc
9 changed files with 132 additions and 135 deletions
|
@ -45,7 +45,7 @@ void Store::exportPath(const StorePath & path, Sink & sink)
|
|||
teeSink
|
||||
<< exportMagic
|
||||
<< printStorePath(path);
|
||||
writeStorePaths(*this, teeSink, info->references);
|
||||
write(*this, teeSink, info->references);
|
||||
teeSink
|
||||
<< (info->deriver ? printStorePath(*info->deriver) : "")
|
||||
<< 0;
|
||||
|
@ -73,7 +73,7 @@ StorePaths Store::importPaths(Source & source, CheckSigsFlag checkSigs)
|
|||
|
||||
//Activity act(*logger, lvlInfo, format("importing path '%s'") % info.path);
|
||||
|
||||
info.references = readStorePaths<StorePathSet>(*this, source);
|
||||
info.references = read(*this, source, Proxy<StorePathSet> {});
|
||||
|
||||
auto deriver = readString(source);
|
||||
if (deriver != "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue