From d08e6f1af5a96818c9e7c2c9e0a6288470489822 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Wed, 12 Jun 2024 17:49:55 +0200 Subject: Pass RemoteAddress to ConfigurationClient by value ...instead of using singleton calls. --- src/buildtool/serve_api/remote/target_client.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/buildtool/serve_api/remote/target_client.hpp') diff --git a/src/buildtool/serve_api/remote/target_client.hpp b/src/buildtool/serve_api/remote/target_client.hpp index 15106317..0837d9fd 100644 --- a/src/buildtool/serve_api/remote/target_client.hpp +++ b/src/buildtool/serve_api/remote/target_client.hpp @@ -27,6 +27,7 @@ #include "src/buildtool/common/artifact.hpp" #include "src/buildtool/common/artifact_digest.hpp" #include "src/buildtool/common/remote/port.hpp" +#include "src/buildtool/common/remote/remote_common.hpp" #include "src/buildtool/execution_api/common/create_execution_api.hpp" #include "src/buildtool/logging/logger.hpp" #include "src/buildtool/storage/target_cache_entry.hpp" @@ -51,7 +52,7 @@ using serve_target_result_t = /// src/buildtool/serve_api/serve_service/just_serve.proto class TargetClient { public: - TargetClient(std::string const& server, Port port) noexcept; + explicit TargetClient(ServerAddress const& address) noexcept; /// \brief Retrieve the pair of TargetCacheEntry and ObjectInfo associated /// to the given key. -- cgit v1.2.3