summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/local/local_api.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2025-01-29 09:46:58 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2025-02-07 14:58:04 +0100
commit95792fb717bd84d500037b62c77a4949274e670d (patch)
tree9bb1765a57e4d6d42941a33aff7e9721dec8068e /src/buildtool/execution_api/local/local_api.hpp
parentea2291d24d531a1ea221f1035636303ac0da787d (diff)
downloadjustbuild-95792fb717bd84d500037b62c77a4949274e670d.tar.gz
Replace ArtifactBlobContainer and BazelBlobContainer
...with explicit std::unordered_set.
Diffstat (limited to 'src/buildtool/execution_api/local/local_api.hpp')
-rw-r--r--src/buildtool/execution_api/local/local_api.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildtool/execution_api/local/local_api.hpp b/src/buildtool/execution_api/local/local_api.hpp
index 07bef457..c8877c52 100644
--- a/src/buildtool/execution_api/local/local_api.hpp
+++ b/src/buildtool/execution_api/local/local_api.hpp
@@ -164,7 +164,7 @@ class LocalApi final : public IExecutionApi {
// Collect blobs of missing artifacts from local CAS. Trees are
// processed recursively before any blob is uploaded.
- ArtifactBlobContainer container{};
+ std::unordered_set<ArtifactBlob> container;
for (auto const& dgst : missing_artifacts_info->digests) {
auto const& info = missing_artifacts_info->back_map[dgst];
// Recursively process trees.
@@ -212,7 +212,7 @@ class LocalApi final : public IExecutionApi {
*content,
IsExecutableObject(info.type)},
/*exception_is_fatal=*/true,
- [&api](ArtifactBlobContainer&& blobs) {
+ [&api](std::unordered_set<ArtifactBlob>&& blobs) {
return api.Upload(std::move(blobs),
/*skip_find_missing=*/true);
})) {
@@ -246,7 +246,7 @@ class LocalApi final : public IExecutionApi {
return content;
}
- [[nodiscard]] auto Upload(ArtifactBlobContainer&& blobs,
+ [[nodiscard]] auto Upload(std::unordered_set<ArtifactBlob>&& blobs,
bool /*skip_find_missing*/) const noexcept
-> bool final {
return std::all_of(