From ab0e0b86fff94bed224f894be6b555272857e336 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 29 Jul 2024 17:11:53 +0200 Subject: Pass LocalContext to ApiBundle --- src/buildtool/execution_api/common/api_bundle.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 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 6dea80ce..96b24376 100644 --- a/src/buildtool/execution_api/common/api_bundle.cpp +++ b/src/buildtool/execution_api/common/api_bundle.cpp @@ -20,9 +20,7 @@ #include "src/buildtool/execution_api/remote/bazel/bazel_api.hpp" ApiBundle::ApiBundle( - gsl::not_null const& storage_config, - gsl::not_null const& storage, - gsl::not_null const& local_exec_config, + gsl::not_null const& local_context, RepositoryConfig const* repo_config, gsl::not_null const& authentication, gsl::not_null const& retry_config, @@ -30,10 +28,10 @@ ApiBundle::ApiBundle( : auth{*authentication}, retry_config{*retry_config}, remote_config{*remote_exec_config}, - hash_function{storage_config->hash_function}, - local{std::make_shared(storage_config, - storage, - local_exec_config, + hash_function{local_context->storage_config->hash_function}, + local{std::make_shared(local_context->storage_config, + local_context->storage, + local_context->exec_config, repo_config)}, remote{CreateRemote(remote_exec_config->remote_address)} {} -- cgit v1.2.3