summaryrefslogtreecommitdiff
path: root/src/other_tools/root_maps/root_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/other_tools/root_maps/root_utils.cpp')
-rw-r--r--src/other_tools/root_maps/root_utils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/other_tools/root_maps/root_utils.cpp b/src/other_tools/root_maps/root_utils.cpp
index 1b9de917..6e77cae8 100644
--- a/src/other_tools/root_maps/root_utils.cpp
+++ b/src/other_tools/root_maps/root_utils.cpp
@@ -38,10 +38,10 @@ auto CheckServeHasAbsentRoot(ServeApi const& serve,
auto EnsureAbsentRootOnServe(ServeApi const& serve,
std::string const& tree_id,
std::filesystem::path const& repo_path,
- IExecutionApi::OptionalPtr const& remote_api,
+ IExecutionApi const* remote_api,
AsyncMapConsumerLoggerPtr const& logger,
bool no_sync_is_fatal) -> bool {
- if (remote_api) {
+ if (remote_api != nullptr) {
// upload tree to remote CAS
auto repo = RepositoryConfig{};
if (not repo.SetGitCAS(repo_path)) {
@@ -55,7 +55,7 @@ auto EnsureAbsentRootOnServe(ServeApi const& serve,
{Artifact::ObjectInfo{
.digest = ArtifactDigest{tree_id, 0, /*is_tree=*/true},
.type = ObjectType::Tree}},
- **remote_api)) {
+ *remote_api)) {
(*logger)(fmt::format("Failed to sync tree {} from repository {}",
tree_id,
repo_path.string()),