diff --git a/client/src/error.rs b/client/src/error.rs index 0cd2f87..fbdedf4 100644 --- a/client/src/error.rs +++ b/client/src/error.rs @@ -1,7 +1,6 @@ use anyhow::Error; use tonic::Status; use tonic_types::StatusExt; -use tracing::{debug, error}; pub fn rewrap_error(status: Status) -> Error { let mut err = Error::msg(status.message().to_owned()); diff --git a/src/admin/server.rs b/src/admin/server.rs index 2ec8d77..838de24 100644 --- a/src/admin/server.rs +++ b/src/admin/server.rs @@ -489,7 +489,7 @@ impl pb::admin_service_server::AdminService for AdminService { escalate(request, |_| async { self.inner .send_system_command(String::from("suspend.target")) - .await; + .await?; Ok(Empty {}) }) .await @@ -497,7 +497,7 @@ impl pb::admin_service_server::AdminService for AdminService { async fn wakeup( &self, - request: tonic::Request, + _request: tonic::Request, ) -> std::result::Result, tonic::Status> { println!("Not supported"); Err(Status::unimplemented("Not supported")) diff --git a/src/utils/tonic.rs b/src/utils/tonic.rs index 547e22a..b8f81a0 100644 --- a/src/utils/tonic.rs +++ b/src/utils/tonic.rs @@ -3,7 +3,7 @@ use std::future::Future; use std::result::Result; use tonic::{Code, Response, Status}; use tonic_types::{ErrorDetails, StatusExt}; -use tracing::{debug, error}; +use tracing::error; pub async fn escalate( req: tonic::Request,