From 3721cf2a4cbdf3284ebf1da52b61b099d5b47b49 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 6 Aug 2024 08:51:45 +0200 Subject: ExecutionServer: use one method for conversion to bazel ExecuteResponse --- .../execution_api/execution_service/execution_server.hpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/buildtool/execution_api/execution_service/execution_server.hpp') diff --git a/src/buildtool/execution_api/execution_service/execution_server.hpp b/src/buildtool/execution_api/execution_service/execution_server.hpp index f1337604..bd7eacb7 100644 --- a/src/buildtool/execution_api/execution_service/execution_server.hpp +++ b/src/buildtool/execution_api/execution_service/execution_server.hpp @@ -18,7 +18,6 @@ #include #include #include -#include //std::monostate #include "build/bazel/remote/execution/v2/remote_execution.grpc.pb.h" #include "gsl/gsl" @@ -149,8 +148,7 @@ class ExecutionServiceImpl final : public bazel_re::Execution::Service { ::bazel_re::Action const& action) const -> expected; - [[nodiscard]] auto GetResponse( - ::bazel_re::ExecuteRequest const* request, + [[nodiscard]] auto ToBazelExecuteResponse( IExecutionResponse::Ptr const& i_execution_response) const noexcept -> expected<::bazel_re::ExecuteResponse, std::string>; @@ -158,12 +156,6 @@ class ExecutionServiceImpl final : public bazel_re::Execution::Service { ::bazel_re::ExecuteResponse const& execute_response, ::grpc::ServerWriter<::google::longrunning::Operation>* writer, ::google::longrunning::Operation* op) noexcept; - - [[nodiscard]] auto AddResult( - ::bazel_re::ExecuteResponse* response, - IExecutionResponse::Ptr const& i_execution_response, - std::string const& hash) const noexcept - -> expected; }; #endif -- cgit v1.2.3