File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ mod kinesis;
3030pub ( crate ) mod llm;
3131pub ( crate ) mod logstream;
3232pub ( crate ) mod middleware;
33- pub ( crate ) mod modal;
33+ pub mod modal;
3434pub ( crate ) mod oidc;
3535mod otel;
3636pub ( crate ) mod query;
@@ -108,9 +108,10 @@ pub async fn send_query_request_to_ingester(query: &Query) -> anyhow::Result<Vec
108108 . header ( http:: header:: AUTHORIZATION , im. token . clone ( ) )
109109 . header ( http:: header:: CONTENT_TYPE , "application/json" )
110110 . send ( )
111- . await ? ;
111+ . await ;
112112
113- if reqw. status ( ) . is_success ( ) {
113+ if let Ok ( reqw) = reqw {
114+ // do i need to do a success check??
114115 let v: Value = serde_json:: from_slice ( & reqw. bytes ( ) . await ?) ?;
115116 // the value returned is an array of json objects
116117 // so it needs to be flattened
You can’t perform that action at this time.
0 commit comments