summaryrefslogtreecommitdiff
path: root/src/other_tools/root_maps/distdir_git_map.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-10 15:22:14 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-06-18 12:05:10 +0200
commit7576e201023f76b017eae1820461bdab094bd290 (patch)
tree3acac800e4885ccefc09dc56090eaee0e841548a /src/other_tools/root_maps/distdir_git_map.cpp
parent3820b5b848644d467013ef0a95c21d08a304b7d3 (diff)
downloadjustbuild-7576e201023f76b017eae1820461bdab094bd290.tar.gz
Use ServeApi functionality via Instance()
...to track changes during refactoring easier.
Diffstat (limited to 'src/other_tools/root_maps/distdir_git_map.cpp')
-rw-r--r--src/other_tools/root_maps/distdir_git_map.cpp17
1 files changed, 10 insertions, 7 deletions
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<std::string>(
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<std::string>(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<std::string>(serve_result)) {
// if serve has set up the tree, it must match what we
// expect