From 57b7ec186b740b94df030e2f064c28148dd30749 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 8 Jul 2024 15:24:57 +0200 Subject: Pass RemoteExecutionConfig instance to ApiBundle ...and store it as a const ref for subsequent use wherever the apis are already passed. --- src/buildtool/execution_api/common/api_bundle.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/buildtool/execution_api/common/api_bundle.hpp') diff --git a/src/buildtool/execution_api/common/api_bundle.hpp b/src/buildtool/execution_api/common/api_bundle.hpp index ca2e91d1..017154c1 100644 --- a/src/buildtool/execution_api/common/api_bundle.hpp +++ b/src/buildtool/execution_api/common/api_bundle.hpp @@ -24,6 +24,7 @@ #include "src/buildtool/common/repository_config.hpp" #include "src/buildtool/execution_api/common/execution_api.hpp" #include "src/buildtool/execution_api/local/config.hpp" +#include "src/buildtool/execution_api/remote/config.hpp" #include "src/buildtool/storage/config.hpp" #include "src/buildtool/storage/storage.hpp" @@ -37,13 +38,14 @@ struct ApiBundle final { gsl::not_null const& local_exec_config, RepositoryConfig const* repo_config, gsl::not_null const& authentication, - std::optional const& remote_address); + gsl::not_null const& remote_exec_config); [[nodiscard]] auto CreateRemote(std::optional const& address) const -> gsl::not_null; gsl::not_null const local; // needed by remote Auth const& auth; // needed by remote + RemoteExecutionConfig const& remote_config; // needed by remote gsl::not_null const remote; }; -- cgit v1.2.3