chore: bump promql-parser to v0.4.1 and use to_string() for EvalStmt (#4832)

chore: bump promql-parser to v0.4.1 and use to_string() for EvalStmt
This commit is contained in:
zyy17
2024-10-15 16:50:37 +08:00
committed by GitHub
parent bb8b54b5d3
commit 972c2441af
3 changed files with 5 additions and 5 deletions

View File

@@ -70,8 +70,7 @@ impl SlowQueryTimer {
slow!(
cost = elapsed.as_millis() as u64,
threshold = threshold.as_millis() as u64,
// TODO(zyy17): It's better to implement Display for EvalStmt for pretty print.
promql = format!("{:?}", stmt)
promql = stmt.to_string()
);
}
}