diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-09-12 17:13:33 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-09-13 16:14:43 +0200 |
commit | 1721533a1bb7ca4e637820d3644096da07be790b (patch) | |
tree | c8897d48d7146581836f39f2950ba8c2ee676234 /src | |
parent | 82e0bd818aee1ca8751e0abf20455af88cc513bf (diff) | |
download | justbuild-1721533a1bb7ca4e637820d3644096da07be790b.tar.gz |
just-mr fetch: Fix minor typo in digest check
The IsAvailable method with the correct signature is now called.
Diffstat (limited to 'src')
-rw-r--r-- | src/other_tools/ops_maps/content_cas_map.cpp | 2 | ||||
-rw-r--r-- | src/other_tools/ops_maps/content_cas_map.hpp | 1 |
2 files changed, 2 insertions, 1 deletions
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 <optional> #include <string> #include "nlohmann/json.hpp" |