diff options
Diffstat (limited to 'src/buildtool/execution_api/serve/mr_local_api.cpp')
-rw-r--r-- | src/buildtool/execution_api/serve/mr_local_api.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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<ArtifactDigest> const& digests) - const noexcept -> std::unordered_set<ArtifactDigest> { +auto MRLocalApi::GetMissingDigests( + std::unordered_set<ArtifactDigest> const& digests) const noexcept + -> std::unordered_set<ArtifactDigest> { // 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<ArtifactDigest> 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<ArtifactDigest> const& digests) "MRLocalApi: Unexpected digest type provided"); return {}; } - return compat_local_api_->IsAvailable(digests); + return compat_local_api_->GetMissingDigests(digests); } |