diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-01-21 12:34:50 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-01-23 16:50:37 +0100 |
commit | 9628af44e244d98a9875586339086074b3d80941 (patch) | |
tree | 1eee1e51f54830443cb83638fdf1c66f754835d8 /src/buildtool/serve_api/remote/serve_api.hpp | |
parent | 432fd50358cfb7d90ca98bbf702d4909b30f74e8 (diff) | |
download | justbuild-9628af44e244d98a9875586339086074b3d80941.tar.gz |
ServeApi: Capture ApiBundle and StorageConfig in the ctor.
Diffstat (limited to 'src/buildtool/serve_api/remote/serve_api.hpp')
-rw-r--r-- | src/buildtool/serve_api/remote/serve_api.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/buildtool/serve_api/remote/serve_api.hpp b/src/buildtool/serve_api/remote/serve_api.hpp index 64cef24c..d6f15c3d 100644 --- a/src/buildtool/serve_api/remote/serve_api.hpp +++ b/src/buildtool/serve_api/remote/serve_api.hpp @@ -51,7 +51,9 @@ class ServeApi final { &local_context->storage_config->hash_function, remote_context}, tc_{address, local_context->storage, remote_context, apis}, - cc_{address, remote_context} {} + cc_{address, remote_context}, + storage_config_{*local_context->storage_config}, + apis_{*apis} {} ~ServeApi() noexcept = default; ServeApi(ServeApi const&) = delete; @@ -166,6 +168,9 @@ class ServeApi final { TargetClient const tc_; // configuration service client ConfigurationClient const cc_; + + StorageConfig const& storage_config_; + ApiBundle const& apis_; }; #endif // BOOTSTRAP_BUILD_TOOL |