aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/worker-protocol.hh
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-07-08 02:18:03 +0200
committereldritch horrors <pennae@lix.systems>2024-07-16 00:57:42 +0000
commit6b4d46e9e0e1dd80e0977684ab20d14bcd1a6bc3 (patch)
treeb79f09fe3c9e62de804ab8aca8a8fec6d08bbb48 /src/libstore/worker-protocol.hh
parenta5d1f698417dff4e470eb94c38ad6c4e5ebf38ff (diff)
libstore: remove WriteConn::sink fields
we no longer need these since we're no longer using sinks to serialize things. Change-Id: Iffb1a3eab33c83f611c88fa4e8beaa8d5ffa079b
Diffstat (limited to 'src/libstore/worker-protocol.hh')
-rw-r--r--src/libstore/worker-protocol.hh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstore/worker-protocol.hh b/src/libstore/worker-protocol.hh
index 9fb6d63e0..315e982dd 100644
--- a/src/libstore/worker-protocol.hh
+++ b/src/libstore/worker-protocol.hh
@@ -87,10 +87,9 @@ struct WorkerProto
* canonical serializers below.
*/
struct WriteConn {
- Sink & to;
Version version;
- WriteConn(Sink & to, Version version) : to(to), version(version) {
+ explicit WriteConn(Version version) : version(version) {
assert(version >= MIN_SUPPORTED_WORKER_PROTO_VERSION);
}
};