fix: start socket stats at 0

This commit is contained in:
trisua 2025-05-02 20:59:58 -04:00
parent 052722eee8
commit 0df2cd7b56

View file

@ -2,6 +2,7 @@ use crate::{
database::drivers::common,
execute,
model::{Error, Result},
cache::Cache,
};
use super::DataManager;
@ -30,6 +31,13 @@ impl DataManager {
execute!(&conn, common::CREATE_TABLE_CHANNELS).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(())
}
}