mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
feat: Show active transaction handle count in !admin federation incoming-federation
This commit is contained in:
@@ -52,6 +52,13 @@ impl crate::Service for Service {
|
||||
}
|
||||
|
||||
impl Service {
|
||||
|
||||
#[must_use]
|
||||
pub fn txn_active_handle_count(&self) -> usize {
|
||||
let state = self.servername_txnid_active.read();
|
||||
state.len()
|
||||
}
|
||||
|
||||
pub fn add_client_txnid(
|
||||
&self,
|
||||
user_id: &UserId,
|
||||
|
||||
Reference in New Issue
Block a user