summaryrefslogtreecommitdiff
path: root/src/other_tools/ops_maps/archive_fetch_map.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-28 12:02:14 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-05 13:32:39 +0200
commit849671f3d4ea482d208da4b5adf5c2c3556e25e4 (patch)
treec4464ebd7bd88a3785c6337c2788d6e8b449fa22 /src/other_tools/ops_maps/archive_fetch_map.hpp
parent3c7f2481918289e8d47922df1c87a7ae77357749 (diff)
downloadjustbuild-849671f3d4ea482d208da4b5adf5c2c3556e25e4.tar.gz
Pass StorageConfig and Storage to just-mr maps
Diffstat (limited to 'src/other_tools/ops_maps/archive_fetch_map.hpp')
-rw-r--r--src/other_tools/ops_maps/archive_fetch_map.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/other_tools/ops_maps/archive_fetch_map.hpp b/src/other_tools/ops_maps/archive_fetch_map.hpp
index 6ec3e44c..772d59e4 100644
--- a/src/other_tools/ops_maps/archive_fetch_map.hpp
+++ b/src/other_tools/ops_maps/archive_fetch_map.hpp
@@ -21,6 +21,7 @@
#include "gsl/gsl"
#include "src/buildtool/execution_api/common/execution_api.hpp"
+#include "src/buildtool/storage/storage.hpp"
#include "src/other_tools/ops_maps/content_cas_map.hpp"
/// \brief Maps an archive content hash to a status flag.
@@ -29,6 +30,7 @@ using ArchiveFetchMap = AsyncMapConsumer<ArchiveContent, bool>;
[[nodiscard]] auto CreateArchiveFetchMap(
gsl::not_null<ContentCASMap*> const& content_cas_map,
std::filesystem::path const& fetch_dir, // should exist!
+ gsl::not_null<Storage const*> const& storage,
gsl::not_null<IExecutionApi const*> const& local_api,
IExecutionApi const* remote_api,
std::size_t jobs) -> ArchiveFetchMap;