1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 23:42:43 +01:00

Hacky fast closure copying mechanism

This commit is contained in:
Eelco Dolstra 2021-06-29 21:17:48 +02:00
parent bef40c2949
commit 3d9de41a5b
6 changed files with 55 additions and 1 deletions

View file

@ -875,6 +875,16 @@ void RemoteStore::queryMissing(const std::vector<DerivedPath> & targets,
}
StorePaths RemoteStore::importPaths(Source & source, CheckSigsFlag checkSigs)
{
auto conn(getConnection());
conn->to << wopImportPaths2;
source.drainInto(conn->to);
conn.processStderr();
return worker_proto::read(*this, conn->from, Phantom<StorePaths> {});
}
void RemoteStore::connect()
{
auto conn(getConnection());