tuwunel_admin/query/pusher/
drop_queue.rs1use ruma::OwnedUserId;
2use tuwunel_core::Result;
3
4use crate::admin_command;
5
6#[admin_command]
7pub(super) async fn drop_queue(&self, user_id: OwnedUserId, pushkey: String) -> Result {
8 self.services
9 .sending
10 .drop_push_queue(user_id, pushkey)
11 .await?;
12
13 self.write_str(
14 "Pending queue dropped. Already claimed batches and suppressed flushes may continue and \
15 requeue older events; new notifications can refill the queue.",
16 )
17 .await
18}