From 616cd734e76b7f4c9666bbaeaa6820fa9980816d Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Tue, 16 Jul 2024 17:30:36 +0200 Subject: Pass RetryConfig instance to ApiBundle Also store a const ref for usage in setting up a fresh ApiBundle during target serve. --- src/buildtool/execution_api/common/api_bundle.hpp | 5 ++++- 1 file changed, 4 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 017154c1..5414423e 100644 --- a/src/buildtool/execution_api/common/api_bundle.hpp +++ b/src/buildtool/execution_api/common/api_bundle.hpp @@ -21,6 +21,7 @@ #include "gsl/gsl" #include "src/buildtool/auth/authentication.hpp" #include "src/buildtool/common/remote/remote_common.hpp" +#include "src/buildtool/common/remote/retry_config.hpp" #include "src/buildtool/common/repository_config.hpp" #include "src/buildtool/execution_api/common/execution_api.hpp" #include "src/buildtool/execution_api/local/config.hpp" @@ -38,6 +39,7 @@ struct ApiBundle final { gsl::not_null const& local_exec_config, RepositoryConfig const* repo_config, gsl::not_null const& authentication, + gsl::not_null const& retry_config, gsl::not_null const& remote_exec_config); [[nodiscard]] auto CreateRemote(std::optional const& address) @@ -45,7 +47,8 @@ struct ApiBundle final { gsl::not_null const local; // needed by remote Auth const& auth; // needed by remote - RemoteExecutionConfig const& remote_config; // needed by remote + RetryConfig const& retry_config; // needed by remote + RemoteExecutionConfig const& remote_config; gsl::not_null const remote; }; -- cgit v1.2.3