From 477c7d5e496b8eb5113b3b51f7152e05eae51fd7 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 30 Jan 2025 15:18:35 +0100 Subject: IExecutionApi: Rename IsAvailable to GetMissingDigests --- src/buildtool/execution_api/serve/mr_local_api.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/buildtool/execution_api/serve/mr_local_api.cpp') diff --git a/src/buildtool/execution_api/serve/mr_local_api.cpp b/src/buildtool/execution_api/serve/mr_local_api.cpp index 5449b245..0e2f61e1 100644 --- a/src/buildtool/execution_api/serve/mr_local_api.cpp +++ b/src/buildtool/execution_api/serve/mr_local_api.cpp @@ -124,8 +124,9 @@ auto MRLocalApi::IsAvailable(ArtifactDigest const& digest) const noexcept return compat_local_api_->IsAvailable(digest); } -auto MRLocalApi::IsAvailable(std::unordered_set const& digests) - const noexcept -> std::unordered_set { +auto MRLocalApi::GetMissingDigests( + std::unordered_set const& digests) const noexcept + -> std::unordered_set { // This method can legitimately be called with both native and // compatible digests when in compatible mode, therefore we need to // interrogate the hash type of the input. @@ -136,7 +137,7 @@ auto MRLocalApi::IsAvailable(std::unordered_set const& digests) } // native digests get dispatched to native local api if (ProtocolTraits::IsNative(digests.begin()->GetHashType())) { - return native_local_api_->IsAvailable(digests); + return native_local_api_->GetMissingDigests(digests); } // compatible digests get dispatched to compatible local api if (compat_local_api_ == nullptr) { @@ -144,5 +145,5 @@ auto MRLocalApi::IsAvailable(std::unordered_set const& digests) "MRLocalApi: Unexpected digest type provided"); return {}; } - return compat_local_api_->IsAvailable(digests); + return compat_local_api_->GetMissingDigests(digests); } -- cgit v1.2.3