diff --git a/crates/app/src/public/html/mod/stats.lisp b/crates/app/src/public/html/mod/stats.lisp index 9d02f2e..3a3bbeb 100644 --- a/crates/app/src/public/html/mod/stats.lisp +++ b/crates/app/src/public/html/mod/stats.lisp @@ -20,16 +20,11 @@ (text "Active user streams: ")) (span (text "{{ active_users }}"))) - (li - (b - (text "Active chat subscriptions: ")) - (span - (text "{{ active_users_chats }}"))) (li (b (text "Socket tasks: ")) (span - (text "{{ (active_users_chats + active_users) * 3 }}")))) + (text "{{ active_users * 3 }}")))) (hr) (ul diff --git a/crates/app/src/routes/pages/mod_panel.rs b/crates/app/src/routes/pages/mod_panel.rs index 2b82cf1..d232325 100644 --- a/crates/app/src/routes/pages/mod_panel.rs +++ b/crates/app/src/routes/pages/mod_panel.rs @@ -286,18 +286,6 @@ pub async fn stats_request(jar: CookieJar, Extension(data): Extension) -> let lang = get_lang!(jar, data.0); let mut context = initial_context(&data.0.0.0, lang, &Some(user)).await; - context.insert( - "active_users_chats", - &data - .0 - .0 - .1 - .get("atto.active_connections:chats".to_string()) - .await - .unwrap_or("0".to_string()) - .parse::() - .unwrap(), - ); context.insert( "active_users", &data diff --git a/crates/core/src/database/common.rs b/crates/core/src/database/common.rs index b0882dc..d778076 100644 --- a/crates/core/src/database/common.rs +++ b/crates/core/src/database/common.rs @@ -52,10 +52,6 @@ impl DataManager { .1 .set("atto.active_connections:users".to_string(), "0".to_string()) .await; - self.0 - .1 - .set("atto.active_connections:chats".to_string(), "0".to_string()) - .await; self.2.init().await.expect("failed to init buckets manager"); Ok(())