diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-20 16:30:38 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-25 13:59:48 +0200 |
commit | f1b92cf45f0ea07f22965ab6d9bca5fcd97e03a8 (patch) | |
tree | 8e198e81ee501b324f7fd4292a5f8835363bdea1 /src/buildtool/execution_engine/executor | |
parent | 5b3ee91c84d37fe2cd7d4ddd9d26370447564161 (diff) | |
download | justbuild-f1b92cf45f0ea07f22965ab6d9bca5fcd97e03a8.tar.gz |
Pass IExecutionApi to IExecutionApi by reference
...instead of not_null const ptr.
Diffstat (limited to 'src/buildtool/execution_engine/executor')
-rw-r--r-- | src/buildtool/execution_engine/executor/executor.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildtool/execution_engine/executor/executor.hpp b/src/buildtool/execution_engine/executor/executor.hpp index d84f4e7e..e02dc454 100644 --- a/src/buildtool/execution_engine/executor/executor.hpp +++ b/src/buildtool/execution_engine/executor/executor.hpp @@ -113,7 +113,7 @@ class ExecutorImpl { if (not api->ParallelRetrieveToCas( std::vector<Artifact::ObjectInfo>{Artifact::ObjectInfo{ *root_digest, ObjectType::Tree, /* failed= */ false}}, - &(*alternative_api), + *alternative_api, /* jobs= */ 1, /* use_blob_splitting= */ true)) { Logger::Log(LogLevel::Error, @@ -149,7 +149,7 @@ class ExecutorImpl { for (auto const& [path, info] : artifacts) { object_infos.emplace_back(info); } - if (not alternative_api->RetrieveToCas(object_infos, api)) { + if (not alternative_api->RetrieveToCas(object_infos, *api)) { Logger::Log(LogLevel::Warning, "Failed to retrieve back artifacts from " "dispatch endpoint"); @@ -197,7 +197,7 @@ class ExecutorImpl { // Check if requested artifact is available in local CAS and // upload to remote CAS in case it is. if (local_api->IsAvailable(object_info_opt->digest) and - local_api->RetrieveToCas({*object_info_opt}, remote_api)) { + local_api->RetrieveToCas({*object_info_opt}, *remote_api)) { return true; } |