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.cpp | |
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.cpp')
-rw-r--r-- | src/buildtool/serve_api/remote/source_tree_client.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/buildtool/serve_api/remote/source_tree_client.cpp b/src/buildtool/serve_api/remote/source_tree_client.cpp index 7a922671..994fcc21 100644 --- a/src/buildtool/serve_api/remote/source_tree_client.cpp +++ b/src/buildtool/serve_api/remote/source_tree_client.cpp @@ -61,9 +61,10 @@ auto PragmaSpecialToSymlinksResolve( SourceTreeClient::SourceTreeClient( ServerAddress const& address, - gsl::not_null<Auth const*> const& auth) noexcept { - stub_ = justbuild::just_serve::SourceTree::NewStub( - CreateChannelWithCredentials(address.host, address.port, auth)); + gsl::not_null<RemoteContext const*> const& remote_context) noexcept { + stub_ = + justbuild::just_serve::SourceTree::NewStub(CreateChannelWithCredentials( + address.host, address.port, remote_context->auth)); } auto SourceTreeClient::ServeCommitTree(std::string const& commit_id, |