diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-27 12:22:09 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-05 12:58:35 +0200 |
commit | f82adab238f4b45d43049687c8e52bf7372ba053 (patch) | |
tree | f09ba0ef72ef1c13122233960759cd5b938249d5 /src/buildtool/serve_api/remote/target_client.hpp | |
parent | 5bc6265b2ffe43370b4cddd0a9e4c09b059ef131 (diff) | |
download | justbuild-f82adab238f4b45d43049687c8e52bf7372ba053.tar.gz |
Pass StorageConfig and Storage to Serve
Diffstat (limited to 'src/buildtool/serve_api/remote/target_client.hpp')
-rw-r--r-- | src/buildtool/serve_api/remote/target_client.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildtool/serve_api/remote/target_client.hpp b/src/buildtool/serve_api/remote/target_client.hpp index 35bb2d29..f8f51987 100644 --- a/src/buildtool/serve_api/remote/target_client.hpp +++ b/src/buildtool/serve_api/remote/target_client.hpp @@ -30,6 +30,7 @@ #include "src/buildtool/common/remote/remote_common.hpp" #include "src/buildtool/execution_api/common/api_bundle.hpp" #include "src/buildtool/logging/logger.hpp" +#include "src/buildtool/storage/storage.hpp" #include "src/buildtool/storage/target_cache_entry.hpp" #include "src/buildtool/storage/target_cache_key.hpp" @@ -53,6 +54,7 @@ using serve_target_result_t = class TargetClient { public: explicit TargetClient(ServerAddress const& address, + gsl::not_null<Storage const*> const& storage, gsl::not_null<ApiBundle const*> const& apis) noexcept; /// \brief Retrieve the pair of TargetCacheEntry and ObjectInfo associated @@ -87,6 +89,7 @@ class TargetClient { const noexcept -> std::optional<ArtifactDigest>; private: + Storage const& storage_; ApiBundle const& apis_; std::unique_ptr<justbuild::just_serve::Target::Stub> stub_; Logger logger_{"RemoteTargetClient"}; |