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/buildtool/main/describe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buildtool/main/describe.cpp') diff --git a/src/buildtool/main/describe.cpp b/src/buildtool/main/describe.cpp index 1fb861d5..eb70f076 100644 --- a/src/buildtool/main/describe.cpp +++ b/src/buildtool/main/describe.cpp @@ -285,7 +285,7 @@ auto DescribeTarget(BuildMaps::Target::ConfiguredTarget const& id, // check that just serve and the client use same remote execution // endpoint; it might make sense in the future to remove or avoid this // check, e.g., if remote endpoints are behind proxies. - if (not ServeApi::CheckServeRemoteExecution()) { + if (not ServeApi::Instance().CheckServeRemoteExecution()) { Logger::Log(LogLevel::Error, "Inconsistent remote execution endpoint and serve " "endpoint configuration detected."); @@ -302,7 +302,7 @@ auto DescribeTarget(BuildMaps::Target::ConfiguredTarget const& id, repo_name); return kExitFailure; } - if (auto dgst = ServeApi::ServeTargetDescription( + if (auto dgst = ServeApi::Instance().ServeTargetDescription( *target_root_id, *(repo_config->TargetFileName(repo_name)), id.target.GetNamedTarget().name)) { -- cgit v1.2.3