summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/common/api_bundle.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-27 13:27:06 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-05 13:32:39 +0200
commit9f5dcef077a3db2f6c791e403e5036f6464c9576 (patch)
tree5e14f016207af83a8d0458a7ffe960ecba56280d /src/buildtool/execution_api/common/api_bundle.cpp
parent0d8a4ad15b93283cc31787b039051b9e9a285ba8 (diff)
downloadjustbuild-9f5dcef077a3db2f6c791e403e5036f6464c9576.tar.gz
Pass StorageConfig and Storage to LocalApi
Diffstat (limited to 'src/buildtool/execution_api/common/api_bundle.cpp')
-rw-r--r--src/buildtool/execution_api/common/api_bundle.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/common/api_bundle.cpp b/src/buildtool/execution_api/common/api_bundle.cpp
index 41637eb4..933ac1f3 100644
--- a/src/buildtool/execution_api/common/api_bundle.cpp
+++ b/src/buildtool/execution_api/common/api_bundle.cpp
@@ -18,10 +18,14 @@
#include "src/buildtool/execution_api/local/local_api.hpp"
#include "src/buildtool/execution_api/remote/bazel/bazel_api.hpp"
-ApiBundle::ApiBundle(RepositoryConfig const* repo_config,
+ApiBundle::ApiBundle(gsl::not_null<StorageConfig const*> const& storage_config,
+ gsl::not_null<Storage const*> const& storage,
+ RepositoryConfig const* repo_config,
gsl::not_null<Auth const*> const& authentication,
std::optional<ServerAddress> const& remote_address)
- : local{std::make_shared<LocalApi>(repo_config)}, // needed by remote
+ : local{std::make_shared<LocalApi>(storage_config,
+ storage,
+ repo_config)}, // needed by remote
auth{*authentication}, // needed by remote
remote{CreateRemote(remote_address)} {}