From ec447408d17c530ce2023d8148dd34a6d8138535 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 11 Jun 2024 16:07:50 +0200 Subject: Pass ServeApi to just-mr maps by reference ...instead of using singleton calls. --- src/other_tools/root_maps/root_utils.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/other_tools/root_maps/root_utils.hpp') diff --git a/src/other_tools/root_maps/root_utils.hpp b/src/other_tools/root_maps/root_utils.hpp index d154eb3e..aae9e84e 100644 --- a/src/other_tools/root_maps/root_utils.hpp +++ b/src/other_tools/root_maps/root_utils.hpp @@ -21,6 +21,7 @@ #include "gsl/gsl" #include "src/buildtool/execution_api/common/execution_api.hpp" #include "src/buildtool/multithreading/async_map_consumer.hpp" +#include "src/buildtool/serve_api/remote/serve_api.hpp" /// \brief Calls the ServeApi to check whether the serve endpoint has the given /// tree available to build against. @@ -30,6 +31,7 @@ /// whether the serve endpoint knows the tree on ServeApi call success. The /// logger is called with fatal ONLY if this method returns nullopt. [[nodiscard]] auto CheckServeHasAbsentRoot( + ServeApi const& serve, std::string const& tree_id, AsyncMapConsumerLoggerPtr const& logger) -> std::optional; @@ -53,6 +55,7 @@ /// \returns Status flag, with false if state is deemed fatal, and true /// otherwise. Logger is only called with fatal if returning false. [[nodiscard]] auto EnsureAbsentRootOnServe( + ServeApi const& serve, std::string const& tree_id, std::filesystem::path const& repo_path, std::optional> const& remote_api, -- cgit v1.2.3