mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
optimise resetting all user presences
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
4 files changed
+40
-28
No files matched your search
@@ -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!(
|
||||
|
||||
Reference in new issue
Block a user