diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-26 12:50:44 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-30 12:10:06 +0200 |
commit | 461ba224785cba270b37375d9dc25f06a630d723 (patch) | |
tree | 34feabfb51d458284d218213214ce343bc530ba1 /src/buildtool/serve_api/remote/source_tree_client.hpp | |
parent | c499f460cd68d505338d9c081863418a413d1c0f (diff) | |
download | justbuild-461ba224785cba270b37375d9dc25f06a630d723.tar.gz |
Pass LocalContext and RemoteContext to ServeApi
Also switch to using the fields from RemoteContext instances
instead of those from ApiBundle.
Diffstat (limited to 'src/buildtool/serve_api/remote/source_tree_client.hpp')
-rw-r--r-- | src/buildtool/serve_api/remote/source_tree_client.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<Auth const*> const& auth) noexcept; + explicit SourceTreeClient( + ServerAddress const& address, + gsl::not_null<RemoteContext const*> const& remote_context) noexcept; // An error + data union type using result_t = expected<std::string, GitLookupError>; |