summaryrefslogtreecommitdiff
path: root/src/other_tools/ops_maps/archive_fetch_map.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-19 15:43:07 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-23 10:24:39 +0200
commit0aab4ee769211fa90e51926ae4411da29c1c0776 (patch)
tree71536e7132bddc5a3d6b4bf93583e40f405dc304 /src/other_tools/ops_maps/archive_fetch_map.hpp
parentec5e4b0290edff5d9589898493cd7d08f3fb5cd3 (diff)
downloadjustbuild-0aab4ee769211fa90e51926ae4411da29c1c0776.tar.gz
just-mr: Use statistics instance in fetch map
...instead of using the singleton.
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 772d59e4..fccc4bd4 100644
--- a/src/other_tools/ops_maps/archive_fetch_map.hpp
+++ b/src/other_tools/ops_maps/archive_fetch_map.hpp
@@ -22,6 +22,7 @@
#include "gsl/gsl"
#include "src/buildtool/execution_api/common/execution_api.hpp"
#include "src/buildtool/storage/storage.hpp"
+#include "src/other_tools/just_mr/progress_reporting/statistics.hpp"
#include "src/other_tools/ops_maps/content_cas_map.hpp"
/// \brief Maps an archive content hash to a status flag.
@@ -33,6 +34,7 @@ using ArchiveFetchMap = AsyncMapConsumer<ArchiveContent, bool>;
gsl::not_null<Storage const*> const& storage,
gsl::not_null<IExecutionApi const*> const& local_api,
IExecutionApi const* remote_api,
+ gsl::not_null<JustMRStatistics*> const& stats,
std::size_t jobs) -> ArchiveFetchMap;
#endif // INCLUDED_SRC_OTHER_TOOLS_OPS_MAPS_ARCHIVE_FETCH_MAP_HPP