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/commit_git_map.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/other_tools/root_maps/commit_git_map.hpp') diff --git a/src/other_tools/root_maps/commit_git_map.hpp b/src/other_tools/root_maps/commit_git_map.hpp index 79fe873d..1f2ff707 100644 --- a/src/other_tools/root_maps/commit_git_map.hpp +++ b/src/other_tools/root_maps/commit_git_map.hpp @@ -25,6 +25,7 @@ #include "nlohmann/json.hpp" #include "src/buildtool/common/user_structs.hpp" #include "src/buildtool/execution_api/common/execution_api.hpp" +#include "src/buildtool/serve_api/remote/serve_api.hpp" #include "src/other_tools/just_mr/mirrors.hpp" #include "src/other_tools/ops_maps/critical_git_op_map.hpp" #include "src/other_tools/ops_maps/import_to_git_map.hpp" @@ -80,7 +81,7 @@ using CommitGitMap = MirrorsPtr const& additional_mirrors, std::string const& git_bin, std::vector const& launcher, - bool serve_api_exists, + std::optional> const& serve, gsl::not_null const& local_api, std::optional> const& remote_api, bool fetch_absent, -- cgit v1.2.3