remove: atto.active_connections:chats
This commit is contained in:
parent
6e4fd3da36
commit
7983b460e5
3 changed files with 1 additions and 22 deletions
|
@ -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
|
||||
|
|
|
@ -286,18 +286,6 @@ pub async fn stats_request(jar: CookieJar, Extension(data): Extension<State>) ->
|
|||
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::<i64>()
|
||||
.unwrap(),
|
||||
);
|
||||
context.insert(
|
||||
"active_users",
|
||||
&data
|
||||
|
|
|
@ -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(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue