Skip to content
Snippets Groups Projects
Commit caab73b2 authored by Arseniy Volynets's avatar Arseniy Volynets Committed by Denis Smirnov
Browse files

refactor: remove stat_query, use query_span instead

parent 01415d4a
No related branches found
No related tags found
1 merge request!1414sbroad import
......@@ -216,22 +216,6 @@ where
f()
}
#[inline]
#[allow(unreachable_code)]
#[allow(unused_variables)]
#[allow(clippy::needless_pass_by_value)]
pub fn stat_query_span<T, F>(name: &'static str, sql: &str, id: &str, tracer: TracerRef, f: F) -> T
where
F: FnOnce() -> T,
{
#[cfg(all(feature = "tracing", not(feature = "mock")))]
{
let ctx = Context::new();
return query_span(name, &id, tracer, &ctx, sql, f);
}
f()
}
#[inline]
#[allow(unreachable_code)]
#[allow(unused_variables)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment