diff options
author | eldritch horrors <pennae@lix.systems> | 2024-05-15 17:13:45 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-07-11 20:37:27 +0000 |
commit | a5d431a9119c2560608768d9ec70fa37d5a6a985 (patch) | |
tree | 57a0b16585bb0070004cf45f537e1d87ba284960 /src/libstore/remote-store.cc | |
parent | 03db4efab90b72c15cb5513debb3ad1563e70cf7 (diff) |
libstore: turn copyNAR into a generator
Change-Id: Id452f6a03faa1037ff13af0f63e32883966ff40d
Diffstat (limited to 'src/libstore/remote-store.cc')
-rw-r--r-- | src/libstore/remote-store.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc index d955f8449..9cebdbe82 100644 --- a/src/libstore/remote-store.cc +++ b/src/libstore/remote-store.cc @@ -469,7 +469,7 @@ void RemoteStore::addToStore(const ValidPathInfo & info, Source & source, if (GET_PROTOCOL_MINOR(conn->daemonVersion) >= 23) { conn.withFramedSink([&](Sink & sink) { - copyNAR(source, sink); + sink << copyNAR(source); }); } else { conn.processStderr(0, &source); @@ -853,7 +853,7 @@ void RemoteStore::narFromPath(const StorePath & path, Sink & sink) auto conn(connections->get()); conn->to << WorkerProto::Op::NarFromPath << printStorePath(path); conn->processStderr(); - copyNAR(conn->from, sink); + sink << copyNAR(conn->from); } ref<FSAccessor> RemoteStore::getFSAccessor() |