From 18092e2ff2d33f9f7c25eec995ffb4ac824fe96c Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 20 Jun 2024 09:36:36 +0200 Subject: Use ApiBundle for creation of APIs in just-mr --- src/other_tools/just_mr/setup_utils.hpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/other_tools/just_mr/setup_utils.hpp') diff --git a/src/other_tools/just_mr/setup_utils.hpp b/src/other_tools/just_mr/setup_utils.hpp index cc3ab86a..f29dbef1 100644 --- a/src/other_tools/just_mr/setup_utils.hpp +++ b/src/other_tools/just_mr/setup_utils.hpp @@ -23,7 +23,6 @@ #include "src/buildtool/build_engine/expression/configuration.hpp" #include "src/buildtool/build_engine/expression/expression_ptr.hpp" -#include "src/buildtool/execution_api/common/execution_api.hpp" #include "src/buildtool/serve_api/remote/config.hpp" #include "src/other_tools/just_mr/cli.hpp" @@ -61,12 +60,9 @@ void DefaultReachableRepositories( std::optional const& absent_file_opt) noexcept -> std::shared_ptr; -/// \brief Get a remote API instance based on just-mr arguments. -/// \returns Pointer to a configured remote API, or nullptr. -[[nodiscard]] auto GetRemoteApi( - std::optional const& remote_exec_addr, - std::optional const& remote_serve_addr, - MultiRepoRemoteAuthArguments const& auth) noexcept -> IExecutionApi::Ptr; +void SetupRemoteConfig(std::optional const& remote_exec_addr, + std::optional const& remote_serve_addr, + MultiRepoRemoteAuthArguments const& auth) noexcept; /// \brief Setup of a 'just serve' remote API based on just-mr arguments. /// \returns RemoteServeConfig if initialization was successfull or std::nullopt -- cgit v1.2.3