diff options
Diffstat (limited to 'src/libstore/worker-protocol.hh')
-rw-r--r-- | src/libstore/worker-protocol.hh | 3 |
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); } }; |