From 3d9de41a5b86520ff0c994dc7ac1023d2a441083 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 29 Jun 2021 21:17:48 +0200 Subject: Hacky fast closure copying mechanism --- src/libstore/remote-store.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/libstore/remote-store.cc') diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc index aec243637..cd2d718ec 100644 --- a/src/libstore/remote-store.cc +++ b/src/libstore/remote-store.cc @@ -875,6 +875,16 @@ void RemoteStore::queryMissing(const std::vector & 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 {}); +} + + void RemoteStore::connect() { auto conn(getConnection()); -- cgit v1.2.3