diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-10 15:22:14 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-18 12:05:10 +0200 |
commit | 7576e201023f76b017eae1820461bdab094bd290 (patch) | |
tree | 3acac800e4885ccefc09dc56090eaee0e841548a /src/other_tools/root_maps/root_utils.cpp | |
parent | 3820b5b848644d467013ef0a95c21d08a304b7d3 (diff) | |
download | justbuild-7576e201023f76b017eae1820461bdab094bd290.tar.gz |
Use ServeApi functionality via Instance()
...to track changes during refactoring easier.
Diffstat (limited to 'src/other_tools/root_maps/root_utils.cpp')
-rw-r--r-- | src/other_tools/root_maps/root_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/other_tools/root_maps/root_utils.cpp b/src/other_tools/root_maps/root_utils.cpp index f9815d88..f0269b33 100644 --- a/src/other_tools/root_maps/root_utils.cpp +++ b/src/other_tools/root_maps/root_utils.cpp @@ -25,7 +25,7 @@ auto CheckServeHasAbsentRoot(std::string const& tree_id, AsyncMapConsumerLoggerPtr const& logger) -> std::optional<bool> { - if (auto has_tree = ServeApi::CheckRootTree(tree_id)) { + if (auto has_tree = ServeApi::Instance().CheckRootTree(tree_id)) { return *has_tree; } (*logger)(fmt::format("Checking that the serve endpoint knows tree " @@ -64,7 +64,7 @@ auto EnsureAbsentRootOnServe( } } // ask serve endpoint to retrieve the uploaded tree - if (not ServeApi::GetTreeFromRemote(tree_id)) { + if (not ServeApi::Instance().GetTreeFromRemote(tree_id)) { // respond based on no_sync_is_fatal flag (*logger)( fmt::format("Serve endpoint failed to sync root tree {}.", tree_id), |