hive-c0re: drop needless async from pause_many (clippy pedantic)
This commit is contained in:
parent
20a7a21053
commit
2bf0d73c8b
2 changed files with 5 additions and 7 deletions
|
|
@ -358,8 +358,7 @@ async fn handle_set_paused(
|
|||
coord.rescan_containers_and_emit().await;
|
||||
return HostResponse::success();
|
||||
}
|
||||
match crate::job_queue::power::pause_many(coord, std::slice::from_ref(&name.to_string())).await
|
||||
{
|
||||
match crate::job_queue::power::pause_many(coord, std::slice::from_ref(&name.to_string())) {
|
||||
Ok(ids) => {
|
||||
tracing::info!(%name, "agent pause queued");
|
||||
HostResponse::queued(ids.into_iter().map(hive_jobq::NodeId::get).collect())
|
||||
|
|
|
|||
Loading…
Reference in a new issue