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/distdir_git_map.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/other_tools/root_maps/distdir_git_map.hpp') diff --git a/src/other_tools/root_maps/distdir_git_map.hpp b/src/other_tools/root_maps/distdir_git_map.hpp index abaa1e84..d26c80e9 100644 --- a/src/other_tools/root_maps/distdir_git_map.hpp +++ b/src/other_tools/root_maps/distdir_git_map.hpp @@ -25,6 +25,7 @@ #include "gsl/gsl" #include "nlohmann/json.hpp" #include "src/buildtool/execution_api/common/execution_api.hpp" +#include "src/buildtool/serve_api/remote/serve_api.hpp" #include "src/other_tools/ops_maps/content_cas_map.hpp" #include "src/other_tools/ops_maps/import_to_git_map.hpp" @@ -53,7 +54,7 @@ using DistdirGitMap = gsl::not_null const& content_cas_map, gsl::not_null const& import_to_git_map, gsl::not_null const& critical_git_op_map, - bool serve_api_exists, + std::optional> const& serve, gsl::not_null const& local_api, std::optional> const& remote_api, std::size_t jobs) -> DistdirGitMap; -- cgit v1.2.3