From 507e944f8b40f30d8201af96ff3fe6778161abbb Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 26 Jul 2024 16:08:56 +0200 Subject: Pass RemoteContext to execution server --- .../execution_api/execution_service/server_implementation.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/execution_service/server_implementation.cpp') diff --git a/src/buildtool/execution_api/execution_service/server_implementation.cpp b/src/buildtool/execution_api/execution_service/server_implementation.cpp index 11be6309..43edd6aa 100644 --- a/src/buildtool/execution_api/execution_service/server_implementation.cpp +++ b/src/buildtool/execution_api/execution_service/server_implementation.cpp @@ -34,7 +34,6 @@ #include "src/buildtool/execution_api/execution_service/cas_server.hpp" #include "src/buildtool/execution_api/execution_service/execution_server.hpp" #include "src/buildtool/execution_api/execution_service/operations_server.hpp" -#include "src/buildtool/execution_api/remote/config.hpp" #include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" @@ -82,6 +81,7 @@ auto ServerImpl::Create(std::optional interface, } auto ServerImpl::Run(gsl::not_null const& local_context, + gsl::not_null const& remote_context, ApiBundle const& apis, std::optional op_exponent) -> bool { ExecutionServiceImpl es{local_context, &*apis.local, op_exponent}; @@ -102,7 +102,8 @@ auto ServerImpl::Run(gsl::not_null const& local_context, // check authentication credentials; currently only TLS/SSL is supported std::shared_ptr creds; - if (const auto* tls_auth = std::get_if(&apis.auth.method); + if (const auto* tls_auth = + std::get_if(&remote_context->auth->method); tls_auth != nullptr) { auto tls_opts = grpc::SslServerCredentialsOptions{}; -- cgit v1.2.3