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)) }