From de3ef374983d987d8ffd8e8516a4877fe68b3e4e Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 8 Jul 2024 16:50:01 +0200 Subject: Use RemoteExecutionConfig instances stored in ApiBundle ...wherever an ApiBundle is already being passed. --- src/buildtool/serve_api/remote/configuration_client.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/buildtool/serve_api/remote/configuration_client.hpp') diff --git a/src/buildtool/serve_api/remote/configuration_client.hpp b/src/buildtool/serve_api/remote/configuration_client.hpp index 3d0eb7ff..3ae6d1e6 100644 --- a/src/buildtool/serve_api/remote/configuration_client.hpp +++ b/src/buildtool/serve_api/remote/configuration_client.hpp @@ -27,6 +27,7 @@ #include "src/buildtool/common/remote/client_common.hpp" #include "src/buildtool/common/remote/port.hpp" #include "src/buildtool/common/remote/remote_common.hpp" +#include "src/buildtool/execution_api/remote/config.hpp" #include "src/buildtool/logging/logger.hpp" /// Implements client side for Configuration service defined in: @@ -35,12 +36,15 @@ class ConfigurationClient { public: explicit ConfigurationClient( ServerAddress address, - gsl::not_null const& auth) noexcept + gsl::not_null const& auth, + gsl::not_null const& + remote_config) noexcept : client_serve_address_{std::move(address)}, stub_{justbuild::just_serve::Configuration::NewStub( CreateChannelWithCredentials(client_serve_address_.host, client_serve_address_.port, - auth))} {} + auth))}, + remote_config_{*remote_config} {} [[nodiscard]] auto CheckServeRemoteExecution() const noexcept -> bool; @@ -49,6 +53,7 @@ class ConfigurationClient { private: ServerAddress const client_serve_address_; std::unique_ptr stub_; + RemoteExecutionConfig const& remote_config_; Logger logger_{"RemoteConfigurationClient"}; }; -- cgit v1.2.3