From 2f5a28beb9c3cb0c357ec96dae54c4b79b804112 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Tue, 31 Jan 2023 17:38:08 +0100 Subject: [PATCH] Remove error_message, add log_file in terminate request --- proto/internal.proto | 5 ++--- src/daemon/server.rs | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/proto/internal.proto b/proto/internal.proto index d341d61..41dbbb5 100644 --- a/proto/internal.proto +++ b/proto/internal.proto @@ -25,12 +25,12 @@ enum AuthorizationStatus { message AuthorizeResponse { AuthorizationStatus status = 1; - string error_message = 2; - string session_uuid = 3; + string session_uuid = 2; } message TerminateRequest { string session_uuid = 1; + string log_file = 2; } enum TerminateStatus { @@ -40,5 +40,4 @@ enum TerminateStatus { message TerminateResponse { TerminateStatus status = 1; - string error_message = 2; } \ No newline at end of file diff --git a/src/daemon/server.rs b/src/daemon/server.rs index 6e718bc..b82e54a 100644 --- a/src/daemon/server.rs +++ b/src/daemon/server.rs @@ -6,7 +6,8 @@ use tonic::{Request, Response, Status}; use libcommand::internal::{ unix_server::Unix, - AuthorizeRequest, AuthorizeResponse, AuthorizationStatus, TerminateRequest, TerminateResponse, TerminateStatus + AuthorizeRequest, AuthorizeResponse, AuthorizationStatus, + TerminateRequest, TerminateResponse, TerminateStatus }; #[derive(Default)] @@ -26,7 +27,6 @@ impl Unix for DaemonServer { let reply = AuthorizeResponse { status: AuthorizationStatus::Authorized.into(), - error_message: "".into(), session_uuid: "".into() }; Ok(Response::new(reply)) @@ -43,8 +43,7 @@ impl Unix for DaemonServer { } let reply = TerminateResponse { - status: TerminateStatus::Ok.into(), - error_message: "".into(), + status: TerminateStatus::Ok.into() }; Ok(Response::new(reply)) }