optimise resetting all user presences

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry committed 2025-01-13 14:09:53 -05:00
1 parent fde1b94e26
commit 8c18481d1d
4 files changed
+40 -28

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ pub(super) async fn process(
match subcommand {
| PresenceCommand::GetPresence { user_id } => {
let timer = tokio::time::Instant::now();
let results = services.presence.db.get_presence(&user_id).await;
let results = services.presence.get_presence(&user_id).await;
let query_time = timer.elapsed();
Ok(RoomMessageEventContent::notice_markdown(format!(