Reduce db connections, improve merge mt/lt
This commit is contained in:
@@ -84,7 +84,9 @@ impl EventDataHandler {
|
||||
let frames = nodenet::conn::events_get_input_frames(inp)
|
||||
.await
|
||||
.map_err(|_| EventDataError::InternalError)?;
|
||||
info!("start parse");
|
||||
let (evsubq,) = nodenet::conn::events_parse_input_query(frames).map_err(|_| EventDataError::QueryParse)?;
|
||||
info!("done parse");
|
||||
let logspan = if false {
|
||||
tracing::Span::none()
|
||||
} else if evsubq.log_level() == "trace" {
|
||||
|
||||
@@ -522,3 +522,12 @@ async fn clear_cache_all(
|
||||
.body(body_string(serde_json::to_string(&res)?))?;
|
||||
Ok(ret)
|
||||
}
|
||||
|
||||
pub async fn test_log() {
|
||||
error!("------");
|
||||
warn!("------");
|
||||
info!("------");
|
||||
debug!("------");
|
||||
trace!("------");
|
||||
scyllaconn::test_log().await;
|
||||
}
|
||||
|
||||
@@ -74,11 +74,12 @@ pub async fn channel_search(req: Requ, ctx: &ReqCtx, proxy_config: &ProxyConfig)
|
||||
let res: ChannelSearchResult = match serde_json::from_slice(&body) {
|
||||
Ok(k) => k,
|
||||
Err(_) => {
|
||||
let msg = format!("can not parse result: {}", String::from_utf8_lossy(&body));
|
||||
let msg = format!("can not parse result tag {} {}", tag, String::from_utf8_lossy(&body));
|
||||
error!("{}", msg);
|
||||
return Err(Error::with_msg_no_trace(msg));
|
||||
}
|
||||
};
|
||||
info!("from {} len {}", tag, res.channels.len());
|
||||
let ret = SubRes {
|
||||
tag,
|
||||
status: StatusCode::OK,
|
||||
|
||||
Reference in New Issue
Block a user