summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/remote/source_tree_client.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-26 12:50:44 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-30 12:10:06 +0200
commit461ba224785cba270b37375d9dc25f06a630d723 (patch)
tree34feabfb51d458284d218213214ce343bc530ba1 /src/buildtool/serve_api/remote/source_tree_client.hpp
parentc499f460cd68d505338d9c081863418a413d1c0f (diff)
downloadjustbuild-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.hpp8
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>;