Fix compilation with a nix which was compiled withou aws sdk

This commit is contained in:
Sandro Jäckel 2025-04-09 17:53:14 +02:00 committed by ahuston-0
parent 33a935e8ef
commit d12d4753ee
No known key found for this signature in database
GPG Key ID: 47940175096C1330

View File

@ -703,6 +703,7 @@ void State::dumpStatus(Connection & conn)
: 0.0}, : 0.0},
}; };
#if NIX_WITH_S3_SUPPORT
auto s3Store = dynamic_cast<S3BinaryCacheStore *>(&*store); auto s3Store = dynamic_cast<S3BinaryCacheStore *>(&*store);
if (s3Store) { if (s3Store) {
auto & s3Stats = s3Store->getS3Stats(); auto & s3Stats = s3Store->getS3Stats();
@ -728,6 +729,7 @@ void State::dumpStatus(Connection & conn)
+ s3Stats.getBytes / (1024.0 * 1024.0 * 1024.0) * 0.09}, + s3Stats.getBytes / (1024.0 * 1024.0 * 1024.0) * 0.09},
}; };
} }
#endif
} }
{ {