polish Joonas's comment

This commit is contained in:
Vadim Kharitonov
2023-07-13 17:31:08 +02:00
parent 0551410c8a
commit 04481ef500
2 changed files with 1 additions and 3 deletions

View File

@@ -43,7 +43,6 @@ fn configurator_main_loop(compute: Arc<ComputeNode>) {
}
}
pub fn launch_configurator(compute: Arc<ComputeNode>) -> thread::JoinHandle<()> {
thread::Builder::new()
.name("compute-configurator".into())

View File

@@ -1,6 +1,5 @@
use std::convert::Infallible;
use std::net::SocketAddr;
use std::str;
use std::sync::Arc;
use std::thread;
@@ -143,7 +142,7 @@ async fn handle_configure_request(
}
let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap();
if let Ok(request) = serde_json::from_slice::<ConfigurationRequest>(body_bytes) {
if let Ok(request) = serde_json::from_slice::<ConfigurationRequest>(&body_bytes) {
let spec = request.spec;
let parsed_spec = match ParsedSpec::try_from(spec) {