fix admin query timers not covering full iteration
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
0171262581
commit
a1ced0a56f
4 changed files with 27 additions and 57 deletions
|
@ -22,9 +22,8 @@ pub(super) async fn presence(subcommand: Presence) -> Result<RoomMessageEventCon
|
|||
} => {
|
||||
let timer = tokio::time::Instant::now();
|
||||
let results = services().presence.db.presence_since(since);
|
||||
let query_time = timer.elapsed();
|
||||
|
||||
let presence_since: Vec<(_, _, _)> = results.collect();
|
||||
let query_time = timer.elapsed();
|
||||
|
||||
Ok(RoomMessageEventContent::notice_markdown(format!(
|
||||
"Query completed in {query_time:?}:\n\n```rs\n{presence_since:#?}\n```"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue