summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/serve/mr_local_api.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2025-02-04 18:26:39 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2025-02-07 14:58:04 +0100
commit0a8dbe086a23bbb905514007d21e2e04cdaae1e8 (patch)
tree06136cea09fa30d857cc4f23f15ea372dfe5ef47 /src/buildtool/execution_api/serve/mr_local_api.hpp
parent3bc0b895258ba8aeb04ee48525036a0a9407c9cb (diff)
downloadjustbuild-0a8dbe086a23bbb905514007d21e2e04cdaae1e8.tar.gz
IExecutionApi: Use unordered_set in IsAvailable
Diffstat (limited to 'src/buildtool/execution_api/serve/mr_local_api.hpp')
-rw-r--r--src/buildtool/execution_api/serve/mr_local_api.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/serve/mr_local_api.hpp b/src/buildtool/execution_api/serve/mr_local_api.hpp
index f930bc46..c548241e 100644
--- a/src/buildtool/execution_api/serve/mr_local_api.hpp
+++ b/src/buildtool/execution_api/serve/mr_local_api.hpp
@@ -19,6 +19,7 @@
#include <map>
#include <optional>
#include <string>
+#include <unordered_set>
#include <vector>
#include "gsl/gsl"
@@ -125,8 +126,9 @@ class MRLocalApi final : public IExecutionApi {
/// \note The caller is responsible for passing vectors with digests of the
/// same type. For simplicity, this method takes the first digest of the
/// vector as representative for figuring out hash function type.
- [[nodiscard]] auto IsAvailable(std::vector<ArtifactDigest> const& digests)
- const noexcept -> std::vector<ArtifactDigest> final;
+ [[nodiscard]] auto IsAvailable(
+ std::unordered_set<ArtifactDigest> const& digests) const noexcept
+ -> std::unordered_set<ArtifactDigest> final;
private:
// retain local context references to have direct access to storages