fix: start socket stats at 0
This commit is contained in:
parent
052722eee8
commit
0df2cd7b56
1 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,7 @@ use crate::{
|
||||||
database::drivers::common,
|
database::drivers::common,
|
||||||
execute,
|
execute,
|
||||||
model::{Error, Result},
|
model::{Error, Result},
|
||||||
|
cache::Cache,
|
||||||
};
|
};
|
||||||
use super::DataManager;
|
use super::DataManager;
|
||||||
|
|
||||||
|
@ -30,6 +31,13 @@ impl DataManager {
|
||||||
execute!(&conn, common::CREATE_TABLE_CHANNELS).unwrap();
|
execute!(&conn, common::CREATE_TABLE_CHANNELS).unwrap();
|
||||||
execute!(&conn, common::CREATE_TABLE_MESSAGES).unwrap();
|
execute!(&conn, common::CREATE_TABLE_MESSAGES).unwrap();
|
||||||
|
|
||||||
|
self.2
|
||||||
|
.set("atto.active_connections:users".to_string(), "0".to_string())
|
||||||
|
.await;
|
||||||
|
self.2
|
||||||
|
.set("atto.active_connections:chats".to_string(), "0".to_string())
|
||||||
|
.await;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue