From 0a8dbe086a23bbb905514007d21e2e04cdaae1e8 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 4 Feb 2025 18:26:39 +0100 Subject: IExecutionApi: Use unordered_set in IsAvailable --- src/buildtool/execution_api/serve/mr_local_api.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/serve/mr_local_api.hpp') 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 #include #include +#include #include #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 const& digests) - const noexcept -> std::vector final; + [[nodiscard]] auto IsAvailable( + std::unordered_set const& digests) const noexcept + -> std::unordered_set final; private: // retain local context references to have direct access to storages -- cgit v1.2.3