diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-06-29 21:17:48 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-07-22 09:59:51 +0200 |
commit | 3d9de41a5b86520ff0c994dc7ac1023d2a441083 (patch) | |
tree | cdeb97e5054a32318ca8640f9effbf180ba1a40f /src/libstore/remote-store.cc | |
parent | bef40c29491ba9b31c85b9b89a5342979344f583 (diff) |
Hacky fast closure copying mechanism
Diffstat (limited to 'src/libstore/remote-store.cc')
-rw-r--r-- | src/libstore/remote-store.cc | 10 |
1 files changed, 10 insertions, 0 deletions
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<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()); |