From 9f5dcef077a3db2f6c791e403e5036f6464c9576 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 27 Jun 2024 13:27:06 +0200 Subject: Pass StorageConfig and Storage to LocalApi --- src/buildtool/execution_api/common/api_bundle.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/common/api_bundle.cpp') 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 const& storage_config, + gsl::not_null const& storage, + RepositoryConfig const* repo_config, gsl::not_null const& authentication, std::optional const& remote_address) - : local{std::make_shared(repo_config)}, // needed by remote + : local{std::make_shared(storage_config, + storage, + repo_config)}, // needed by remote auth{*authentication}, // needed by remote remote{CreateRemote(remote_address)} {} -- cgit v1.2.3