aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/daemon.cc3
-rw-r--r--src/libstore/remote-store.cc2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc
index 6d64644d1..cdc9c09c7 100644
--- a/src/libstore/daemon.cc
+++ b/src/libstore/daemon.cc
@@ -160,8 +160,7 @@ struct TunnelSink : Sink
TunnelSink(Sink & to) : to(to) { }
void operator () (std::string_view data)
{
- to << STDERR_WRITE;
- writeString(data, to);
+ to << STDERR_WRITE << data;
}
};
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index b2f8a285d..55a71f502 100644
--- a/src/libstore/remote-store.cc
+++ b/src/libstore/remote-store.cc
@@ -897,7 +897,7 @@ std::exception_ptr RemoteStore::Connection::processStderr(Sink * sink, Source *
if (!source) throw Error("no source");
size_t len = readNum<size_t>(from);
auto buf = std::make_unique<char[]>(len);
- writeString({(const char *) buf.get(), source->read(buf.get(), len)}, to);
+ to << std::string_view((const char *) buf.get(), source->read(buf.get(), len));
to.flush();
}