Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander V. Nikolaev <[email protected]>
  • Loading branch information
avnik committed Nov 15, 2024
1 parent 9380577 commit b74afb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/admin/registry.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::collections::hash_map::HashMap;
use std::sync::{Arc, Mutex};

use super::entry::{Placement, RegistryEntry};
use super::entry::RegistryEntry;
use crate::types::*;
use anyhow::{anyhow, bail};
use givc_common::query::{Event, QueryResult};
Expand Down
4 changes: 2 additions & 2 deletions src/admin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,15 +485,15 @@ 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
}

async fn wakeup(
&self,
request: tonic::Request<Empty>,
_request: tonic::Request<Empty>,
) -> std::result::Result<tonic::Response<Empty>, tonic::Status> {
println!("Not supported");
Err(Status::unimplemented("Not supported"))
Expand Down

0 comments on commit b74afb3

Please sign in to comment.