Can read, but not open next file in background yet
This commit is contained in:
@@ -62,9 +62,10 @@ async fn parsed_raw(req: Request<Body>) -> Result<Response<Body>, Error> {
|
||||
use netpod::AggQuerySingleChannel;
|
||||
let reqbody = req.into_body();
|
||||
let bodyslice = hyper::body::to_bytes(reqbody).await?;
|
||||
let _query: AggQuerySingleChannel = serde_json::from_slice(&bodyslice)?;
|
||||
let q = disk::read_test_1().await?;
|
||||
let s = q.inner;
|
||||
let query: AggQuerySingleChannel = serde_json::from_slice(&bodyslice)?;
|
||||
//let q = disk::read_test_1(&query).await?;
|
||||
//let s = q.inner;
|
||||
let s = disk::raw_concat_channel_read_stream(&query);
|
||||
let res = response(StatusCode::OK)
|
||||
.body(Body::wrap_stream(s))?;
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user