Skip to content

Commit 90df592

Browse files
author
Devdutt Shenoi
committed
style: cargo fmt
1 parent 427316d commit 90df592

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/handlers/http/prism_logstream.rs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@
1717
*/
1818

1919
use actix_web::{
20-
web::{self, Json, Path}, HttpRequest, Responder
20+
web::{self, Json, Path},
21+
HttpRequest, Responder,
2122
};
2223

23-
use crate::{prism::logstream::{get_prism_logstream_info, PrismDatasetRequest, PrismLogstreamError}, utils::actix::extract_session_key_from_req};
24+
use crate::{
25+
prism::logstream::{get_prism_logstream_info, PrismDatasetRequest, PrismLogstreamError},
26+
utils::actix::extract_session_key_from_req,
27+
};
2428

2529
/// This API is essentially just combining the responses of /info and /schema together
2630
pub async fn get_info(stream_name: Path<String>) -> Result<impl Responder, PrismLogstreamError> {
@@ -30,9 +34,12 @@ pub async fn get_info(stream_name: Path<String>) -> Result<impl Responder, Prism
3034
}
3135

3236
/// A combination of /stats, /retention, /hottier, /info, /counts and /query
33-
pub async fn post_datasets(Json(prism_req): Json<PrismDatasetRequest>, req: HttpRequest) -> Result<impl Responder, PrismLogstreamError> {
37+
pub async fn post_datasets(
38+
Json(prism_req): Json<PrismDatasetRequest>,
39+
req: HttpRequest,
40+
) -> Result<impl Responder, PrismLogstreamError> {
3441
let session_key = extract_session_key_from_req(&req)?;
35-
let dataset = prism_req.get_datasets(session_key).await?;
42+
let dataset = prism_req.get_datasets(session_key).await?;
3643

3744
Ok(web::Json(dataset))
38-
}
45+
}

0 commit comments

Comments
 (0)