From 7576e201023f76b017eae1820461bdab094bd290 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 10 Jun 2024 15:22:14 +0200 Subject: Use ServeApi functionality via Instance() ...to track changes during refactoring easier. --- src/other_tools/root_maps/distdir_git_map.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/other_tools/root_maps/distdir_git_map.cpp') diff --git a/src/other_tools/root_maps/distdir_git_map.cpp b/src/other_tools/root_maps/distdir_git_map.cpp index c1d9bd11..390a5de4 100644 --- a/src/other_tools/root_maps/distdir_git_map.cpp +++ b/src/other_tools/root_maps/distdir_git_map.cpp @@ -201,9 +201,10 @@ auto CreateDistdirGitMap( // try to see if serve endpoint has the // information to prepare the root itself auto serve_result = - ServeApi::RetrieveTreeFromDistdir( - key.content_list, - /*sync_tree=*/false); + ServeApi::Instance() + .RetrieveTreeFromDistdir( + key.content_list, + /*sync_tree=*/false); if (std::holds_alternative( serve_result)) { // if serve has set up the tree, it must @@ -348,8 +349,9 @@ auto CreateDistdirGitMap( // try to see if serve endpoint has the information to // prepare the root itself auto serve_result = - ServeApi::RetrieveTreeFromDistdir(key.content_list, - /*sync_tree=*/false); + ServeApi::Instance().RetrieveTreeFromDistdir( + key.content_list, + /*sync_tree=*/false); if (std::holds_alternative(serve_result)) { // if serve has set up the tree, it must match what we // expect @@ -482,8 +484,9 @@ auto CreateDistdirGitMap( // a present root, a corresponding remote endpoint is needed if (serve_api_exists and remote_api) { auto serve_result = - ServeApi::RetrieveTreeFromDistdir(key.content_list, - /*sync_tree=*/true); + ServeApi::Instance().RetrieveTreeFromDistdir( + key.content_list, + /*sync_tree=*/true); if (std::holds_alternative(serve_result)) { // if serve has set up the tree, it must match what we // expect -- cgit v1.2.3