mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
RemoteStore::addToStore(): Send NAR rather than string containing NAR
This allows the NAR to be streamed in the future (though we're not doing that yet).
This commit is contained in:
parent
374908726b
commit
f61f67ddee
5 changed files with 21 additions and 37 deletions
|
@ -169,9 +169,9 @@ struct LegacySSHStore : public Store
|
|||
|
||||
/* FIXME: inefficient. */
|
||||
ParseSink parseSink; /* null sink; just parse the NAR */
|
||||
SavingSourceAdapter savedNAR(conn->from);
|
||||
TeeSource savedNAR(conn->from);
|
||||
parseDump(parseSink, savedNAR);
|
||||
sink(savedNAR.s);
|
||||
sink(*savedNAR.data);
|
||||
}
|
||||
|
||||
/* Unsupported methods. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue