Skip to content

Commit f0ae44e

Browse files
committed
RemoteStore::addToStore(): Fix version comparison
1 parent 4934dbb commit f0ae44e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libstore/remote-store.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ void RemoteStore::addToStore(const ValidPathInfo & info, Source & source, Repair
469469
void RemoteStore::addMultipleToStore(
470470
PathsSource && pathsToCopy, Activity & act, RepairFlag repair, CheckSigsFlag checkSigs)
471471
{
472-
if (getConnection()->protoVersion < WorkerProto::Version{.number = {1, 32}}) {
472+
if (getConnection()->protoVersion.number < WorkerProto::Version::Number{1, 32}) {
473473
Store::addMultipleToStore(std::move(pathsToCopy), act, repair, checkSigs);
474474
return;
475475
}

0 commit comments

Comments
 (0)