首页布局优化前
This commit is contained in:
@@ -166,6 +166,9 @@ impl SessionManager {
|
||||
sessions.values().cloned().collect()
|
||||
}
|
||||
|
||||
/// Get the number of active sessions
|
||||
/// Reserved for future status dashboard
|
||||
#[allow(dead_code)]
|
||||
pub async fn session_count(&self) -> usize {
|
||||
let sessions = self.sessions.read().await;
|
||||
sessions.len()
|
||||
|
||||
Reference in New Issue
Block a user