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/other_tools/ops_maps | |
parent | 5b3ee91c84d37fe2cd7d4ddd9d26370447564161 (diff) | |
download | justbuild-f1b92cf45f0ea07f22965ab6d9bca5fcd97e03a8.tar.gz |
Pass IExecutionApi to IExecutionApi by reference
...instead of not_null const ptr.
Diffstat (limited to 'src/other_tools/ops_maps')
-rw-r--r-- | src/other_tools/ops_maps/archive_fetch_map.cpp | 2 | ||||
-rw-r--r-- | src/other_tools/ops_maps/content_cas_map.cpp | 4 | ||||
-rw-r--r-- | src/other_tools/ops_maps/git_tree_fetch_map.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/other_tools/ops_maps/archive_fetch_map.cpp b/src/other_tools/ops_maps/archive_fetch_map.cpp index 1e89025d..bf655dfd 100644 --- a/src/other_tools/ops_maps/archive_fetch_map.cpp +++ b/src/other_tools/ops_maps/archive_fetch_map.cpp @@ -40,7 +40,7 @@ void ProcessContent( {Artifact::ObjectInfo{ .digest = ArtifactDigest{content, 0, /*is_tree=*/false}, .type = ObjectType::File}}, - *remote_api)) { + **remote_api)) { // give a warning (*logger)(fmt::format("Failed to back up content {} from local CAS " "to remote", diff --git a/src/other_tools/ops_maps/content_cas_map.cpp b/src/other_tools/ops_maps/content_cas_map.cpp index 97e959d4..190c9611 100644 --- a/src/other_tools/ops_maps/content_cas_map.cpp +++ b/src/other_tools/ops_maps/content_cas_map.cpp @@ -221,7 +221,7 @@ auto CreateContentCASMap( if (remote_api.value()->RetrieveToCas( {Artifact::ObjectInfo{.digest = digest, .type = ObjectType::File}}, - local_api)) { + *local_api)) { JustMRProgress::Instance().TaskTracker().Stop( key.origin); (*setter)(nullptr); @@ -233,7 +233,7 @@ auto CreateContentCASMap( remote_api.value()->RetrieveToCas( {Artifact::ObjectInfo{.digest = digest, .type = ObjectType::File}}, - local_api)) { + *local_api)) { JustMRProgress::Instance().TaskTracker().Stop(key.origin); (*setter)(nullptr); return; diff --git a/src/other_tools/ops_maps/git_tree_fetch_map.cpp b/src/other_tools/ops_maps/git_tree_fetch_map.cpp index 0a0c7eb9..844aad31 100644 --- a/src/other_tools/ops_maps/git_tree_fetch_map.cpp +++ b/src/other_tools/ops_maps/git_tree_fetch_map.cpp @@ -45,7 +45,7 @@ void BackupToRemote(std::string const& tree_id, {Artifact::ObjectInfo{ .digest = ArtifactDigest{tree_id, 0, /*is_tree=*/true}, .type = ObjectType::Tree}}, - remote_api)) { + *remote_api)) { // give a warning (*logger)(fmt::format( "Failed to back up tree {} from local CAS to remote", @@ -243,7 +243,7 @@ auto CreateGitTreeFetchMap( remote_api.value()->RetrieveToCas( {Artifact::ObjectInfo{.digest = digest, .type = ObjectType::Tree}}, - local_api)) { + *local_api)) { JustMRProgress::Instance().TaskTracker().Stop(key.origin); MoveCASTreeToGit( key.hash, |