From 8520a8fe2b2fc20940ed6457971a8de179343449 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 29 Aug 2024 10:48:04 +0200 Subject: Return ArtifactDigest from LocalCAS::Store --- src/buildtool/main/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/buildtool/main/main.cpp') diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 1cf9901b..ee118f4a 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -248,8 +248,7 @@ void StoreTargetCacheShard( std::exit(kExitFailure); } [[maybe_unused]] auto id = storage.CAS().StoreBlob(*backend_description); - EnsuresAudit(id and ArtifactDigest{*id}.hash() == - storage_config.backend_description_id); + EnsuresAudit(id and id->hash() == storage_config.backend_description_id); } #endif // BOOTSTRAP_BUILD_TOOL -- cgit v1.2.3