Skip to content

Commit b7175f7

Browse files
committed
removed todo comment
1 parent cbbdb8c commit b7175f7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ use std::{
44
net::{IpAddr, SocketAddr},
55
};
66

7-
use axum::{http::StatusCode, routing::post, Json, Router, response::IntoResponse};
7+
use axum::{http::StatusCode, response::IntoResponse, routing::post, Json, Router};
88
use config::{validate_registered_detectors, DetectorConfig, GatewayConfig};
99
use serde::Serialize;
10-
use serde_json::{Map, Value};
1110
use serde_json::json;
11+
use serde_json::{Map, Value};
1212
use tower_http::trace::{self, TraceLayer};
1313
use tracing::Level;
1414

@@ -86,7 +86,6 @@ async fn main() {
8686
axum::serve(listener, app).await.unwrap();
8787
}
8888

89-
// still need to handle sending back to client
9089
async fn handle_generation(
9190
Json(mut payload): Json<serde_json::Value>,
9291
detectors: Vec<String>,
@@ -120,4 +119,4 @@ async fn orchestrator_post_request(
120119
let json = response.await?.json().await?;
121120
println!("{:#?}", json);
122121
Ok(json)
123-
}
122+
}

0 commit comments

Comments
 (0)