diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-08-06 08:51:45 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-08-07 15:37:51 +0200 |
commit | 3721cf2a4cbdf3284ebf1da52b61b099d5b47b49 (patch) | |
tree | e4033904c30b27cbe400c640e07354e5daa43de1 /src/buildtool/execution_api/execution_service/execution_server.hpp | |
parent | faffcc8eb1f59642235e09b386c13c7c6cacd4f9 (diff) | |
download | justbuild-3721cf2a4cbdf3284ebf1da52b61b099d5b47b49.tar.gz |
ExecutionServer: use one method for conversion to bazel ExecuteResponse
Diffstat (limited to 'src/buildtool/execution_api/execution_service/execution_server.hpp')
-rw-r--r-- | src/buildtool/execution_api/execution_service/execution_server.hpp | 10 |
1 files changed, 1 insertions, 9 deletions
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 <cstdint> #include <optional> #include <string> -#include <variant> //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<IExecutionAction::Ptr, std::string>; - [[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<std::monostate, std::string>; }; #endif |