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: "))
|
(text "Active user streams: "))
|
||||||
(span
|
(span
|
||||||
(text "{{ active_users }}")))
|
(text "{{ active_users }}")))
|
||||||
(li
|
|
||||||
(b
|
|
||||||
(text "Active chat subscriptions: "))
|
|
||||||
(span
|
|
||||||
(text "{{ active_users_chats }}")))
|
|
||||||
(li
|
(li
|
||||||
(b
|
(b
|
||||||
(text "Socket tasks: "))
|
(text "Socket tasks: "))
|
||||||
(span
|
(span
|
||||||
(text "{{ (active_users_chats + active_users) * 3 }}"))))
|
(text "{{ active_users * 3 }}"))))
|
||||||
|
|
||||||
(hr)
|
(hr)
|
||||||
(ul
|
(ul
|
||||||
|
|
|
@ -286,18 +286,6 @@ pub async fn stats_request(jar: CookieJar, Extension(data): Extension<State>) ->
|
||||||
let lang = get_lang!(jar, data.0);
|
let lang = get_lang!(jar, data.0);
|
||||||
let mut context = initial_context(&data.0.0.0, lang, &Some(user)).await;
|
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(
|
context.insert(
|
||||||
"active_users",
|
"active_users",
|
||||||
&data
|
&data
|
||||||
|
|
|
@ -52,10 +52,6 @@ impl DataManager {
|
||||||
.1
|
.1
|
||||||
.set("atto.active_connections:users".to_string(), "0".to_string())
|
.set("atto.active_connections:users".to_string(), "0".to_string())
|
||||||
.await;
|
.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");
|
self.2.init().await.expect("failed to init buckets manager");
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue