From 59292b03024f7e82abf9a04cc3e2ba4142abf579 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 22 Jul 2024 17:06:06 +0200 Subject: just-mr: Pass statistics instance in repos-to-setup map ...instead of using the singleton. --- src/other_tools/just_mr/setup.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'src/other_tools/just_mr/setup.cpp') diff --git a/src/other_tools/just_mr/setup.cpp b/src/other_tools/just_mr/setup.cpp index a2281ead..dbed15a1 100644 --- a/src/other_tools/just_mr/setup.cpp +++ b/src/other_tools/just_mr/setup.cpp @@ -306,17 +306,19 @@ auto MultiRepoSetup(std::shared_ptr const& config, has_remote_api ? &*apis.remote : nullptr, common_args.jobs); - auto repos_to_setup_map = CreateReposToSetupMap(config, - main, - interactive, - &commit_git_map, - &content_git_map, - &foreign_file_git_map, - &fpath_git_map, - &distdir_git_map, - &tree_id_git_map, - common_args.fetch_absent, - common_args.jobs); + auto repos_to_setup_map = + CreateReposToSetupMap(config, + main, + interactive, + &commit_git_map, + &content_git_map, + &foreign_file_git_map, + &fpath_git_map, + &distdir_git_map, + &tree_id_git_map, + common_args.fetch_absent, + &JustMRStatistics::Instance(), + common_args.jobs); // set up progress observer Logger::Log(LogLevel::Info, -- cgit v1.2.3