diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-08 15:24:57 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-16 17:51:12 +0200 |
commit | 57b7ec186b740b94df030e2f064c28148dd30749 (patch) | |
tree | ddd445ceddf4b2d16c2749db04463354a691f3a9 /src/buildtool/execution_api/common/api_bundle.cpp | |
parent | 24c900225902337feee7a8cc4399fdffdecd945f (diff) | |
download | justbuild-57b7ec186b740b94df030e2f064c28148dd30749.tar.gz |
Pass RemoteExecutionConfig instance to ApiBundle
...and store it as a const ref for subsequent use wherever the apis
are already passed.
Diffstat (limited to 'src/buildtool/execution_api/common/api_bundle.cpp')
-rw-r--r-- | src/buildtool/execution_api/common/api_bundle.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/common/api_bundle.cpp b/src/buildtool/execution_api/common/api_bundle.cpp index 0c763493..d9a588a3 100644 --- a/src/buildtool/execution_api/common/api_bundle.cpp +++ b/src/buildtool/execution_api/common/api_bundle.cpp @@ -24,13 +24,14 @@ ApiBundle::ApiBundle( gsl::not_null<LocalExecutionConfig const*> const& local_exec_config, RepositoryConfig const* repo_config, gsl::not_null<Auth const*> const& authentication, - std::optional<ServerAddress> const& remote_address) + gsl::not_null<RemoteExecutionConfig const*> const& remote_exec_config) : local{std::make_shared<LocalApi>(storage_config, storage, local_exec_config, repo_config)}, // needed by remote auth{*authentication}, // needed by remote - remote{CreateRemote(remote_address)} {} + remote_config{*remote_exec_config}, // needed by remote + remote{CreateRemote(remote_exec_config->RemoteAddress())} {} auto ApiBundle::CreateRemote(std::optional<ServerAddress> const& address) const -> gsl::not_null<IExecutionApi::Ptr> { |