From 461ba224785cba270b37375d9dc25f06a630d723 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 26 Jul 2024 12:50:44 +0200 Subject: Pass LocalContext and RemoteContext to ServeApi Also switch to using the fields from RemoteContext instances instead of those from ApiBundle. --- src/buildtool/serve_api/remote/source_tree_client.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/buildtool/serve_api/remote/source_tree_client.hpp') diff --git a/src/buildtool/serve_api/remote/source_tree_client.hpp b/src/buildtool/serve_api/remote/source_tree_client.hpp index e5001029..c849eeb3 100644 --- a/src/buildtool/serve_api/remote/source_tree_client.hpp +++ b/src/buildtool/serve_api/remote/source_tree_client.hpp @@ -21,9 +21,8 @@ #include "gsl/gsl" #include "justbuild/just_serve/just_serve.grpc.pb.h" -#include "src/buildtool/auth/authentication.hpp" -#include "src/buildtool/common/remote/port.hpp" #include "src/buildtool/common/remote/remote_common.hpp" +#include "src/buildtool/execution_api/remote/context.hpp" #include "src/buildtool/file_system/git_types.hpp" #include "src/buildtool/file_system/symlinks_map/pragma_special.hpp" #include "src/buildtool/logging/logger.hpp" @@ -33,8 +32,9 @@ /// src/buildtool/serve_api/serve_service/just_serve.proto class SourceTreeClient { public: - explicit SourceTreeClient(ServerAddress const& address, - gsl::not_null const& auth) noexcept; + explicit SourceTreeClient( + ServerAddress const& address, + gsl::not_null const& remote_context) noexcept; // An error + data union type using result_t = expected; -- cgit v1.2.3