From 1721533a1bb7ca4e637820d3644096da07be790b Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Tue, 12 Sep 2023 17:13:33 +0200 Subject: just-mr fetch: Fix minor typo in digest check The IsAvailable method with the correct signature is now called. --- src/other_tools/ops_maps/content_cas_map.cpp | 2 +- src/other_tools/ops_maps/content_cas_map.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/other_tools/ops_maps/content_cas_map.cpp b/src/other_tools/ops_maps/content_cas_map.cpp index 51d909b5..898aa4f1 100644 --- a/src/other_tools/ops_maps/content_cas_map.cpp +++ b/src/other_tools/ops_maps/content_cas_map.cpp @@ -67,7 +67,7 @@ auto CreateContentCASMap(JustMR::PathsPtr const& just_mr_paths, } JustMRProgress::Instance().TaskTracker().Start(key.origin); // check if content is in remote CAS, if a remote is given - if (remote_api and local_api and remote_api->IsAvailable({digest}) and + if (remote_api and local_api and remote_api->IsAvailable(digest) and remote_api->RetrieveToCas( {Artifact::ObjectInfo{.digest = digest, .type = ObjectType::File}}, diff --git a/src/other_tools/ops_maps/content_cas_map.hpp b/src/other_tools/ops_maps/content_cas_map.hpp index 1dc18dcd..b6413761 100644 --- a/src/other_tools/ops_maps/content_cas_map.hpp +++ b/src/other_tools/ops_maps/content_cas_map.hpp @@ -15,6 +15,7 @@ #ifndef INCLUDED_SRC_OTHER_TOOLS_OPS_MAPS_CONTENT_CAS_MAP_HPP #define INCLUDED_SRC_OTHER_TOOLS_OPS_MAPS_CONTENT_CAS_MAP_HPP +#include #include #include "nlohmann/json.hpp" -- cgit v1.2.3