diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-20 10:44:52 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-25 13:59:48 +0200 |
commit | c7f83a2d2fa436bf78911e288e1f07576861601e (patch) | |
tree | bfa8e4c990473a9e0f2a36eb444a03dfb9713e87 /src/buildtool/serve_api/remote/target_client.hpp | |
parent | 18092e2ff2d33f9f7c25eec995ffb4ac824fe96c (diff) | |
download | justbuild-c7f83a2d2fa436bf78911e288e1f07576861601e.tar.gz |
Pass ApiBundle to ServeApi
Diffstat (limited to 'src/buildtool/serve_api/remote/target_client.hpp')
-rw-r--r-- | src/buildtool/serve_api/remote/target_client.hpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/buildtool/serve_api/remote/target_client.hpp b/src/buildtool/serve_api/remote/target_client.hpp index bc3aa382..35bb2d29 100644 --- a/src/buildtool/serve_api/remote/target_client.hpp +++ b/src/buildtool/serve_api/remote/target_client.hpp @@ -52,7 +52,8 @@ using serve_target_result_t = /// src/buildtool/serve_api/serve_service/just_serve.proto class TargetClient { public: - explicit TargetClient(ServerAddress const& address) noexcept; + explicit TargetClient(ServerAddress const& address, + gsl::not_null<ApiBundle const*> const& apis) noexcept; /// \brief Retrieve the pair of TargetCacheEntry and ObjectInfo associated /// to the given key. @@ -86,14 +87,9 @@ class TargetClient { const noexcept -> std::optional<ArtifactDigest>; private: + ApiBundle const& apis_; std::unique_ptr<justbuild::just_serve::Target::Stub> stub_; Logger logger_{"RemoteTargetClient"}; - gsl::not_null<IExecutionApi::Ptr> const remote_api_{ - CreateExecutionApi(RemoteExecutionConfig::RemoteAddress(), - std::nullopt, - "remote-execution")}; - gsl::not_null<IExecutionApi::Ptr> const local_api_{ - CreateExecutionApi(std::nullopt)}; }; #endif // INCLUDED_SRC_BUILDTOOL_SERVE_API_TARGET_CLIENT_HPP |