diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-29 17:11:53 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-30 12:10:06 +0200 |
commit | ab0e0b86fff94bed224f894be6b555272857e336 (patch) | |
tree | a7b7abf004e761b34e58bf68986b6ee2c7d71440 /src/buildtool/execution_api/common/api_bundle.cpp | |
parent | e607a21fcf2c1b50e347adbc66c0af3ed0df75aa (diff) | |
download | justbuild-ab0e0b86fff94bed224f894be6b555272857e336.tar.gz |
Pass LocalContext to ApiBundle
Diffstat (limited to 'src/buildtool/execution_api/common/api_bundle.cpp')
-rw-r--r-- | src/buildtool/execution_api/common/api_bundle.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
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<StorageConfig const*> const& storage_config, - gsl::not_null<Storage const*> const& storage, - gsl::not_null<LocalExecutionConfig const*> const& local_exec_config, + gsl::not_null<LocalContext const*> const& local_context, RepositoryConfig const* repo_config, gsl::not_null<Auth const*> const& authentication, gsl::not_null<RetryConfig const*> 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<LocalApi>(storage_config, - storage, - local_exec_config, + hash_function{local_context->storage_config->hash_function}, + local{std::make_shared<LocalApi>(local_context->storage_config, + local_context->storage, + local_context->exec_config, repo_config)}, remote{CreateRemote(remote_exec_config->remote_address)} {} |