mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 23:42:43 +01:00
Do compression in a sink
This commit is contained in:
parent
c6a21aed07
commit
0d4a10e910
6 changed files with 208 additions and 139 deletions
|
|
@ -541,7 +541,7 @@ void RemoteStore::Connection::processStderr(Sink * sink, Source * source)
|
|||
if (msg == STDERR_WRITE) {
|
||||
string s = readString(from);
|
||||
if (!sink) throw Error("no sink");
|
||||
(*sink)((const unsigned char *) s.data(), s.size());
|
||||
(*sink)(s);
|
||||
}
|
||||
else if (msg == STDERR_READ) {
|
||||
if (!source) throw Error("no source");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue