Init + Uptime timers

This commit is contained in:
Alexey
2026-03-05 15:48:09 +03:00
parent 8066ea2163
commit 3260746785
3 changed files with 139 additions and 3 deletions

View File

@@ -278,6 +278,11 @@ impl ConnRegistry {
Some(ConnWriter { writer_id, tx: writer })
}
pub async fn active_conn_ids(&self) -> Vec<u64> {
let inner = self.inner.read().await;
inner.writer_for_conn.keys().copied().collect()
}
pub async fn writer_lost(&self, writer_id: u64) -> Vec<BoundConn> {
let mut inner = self.inner.write().await;
inner.writers.remove(&writer_id);