notifications view

This commit is contained in:
realaravinth
2021-07-12 21:22:26 +05:30
parent b7ec1bca22
commit 47cca5c9a7
14 changed files with 163 additions and 78 deletions

View File

@@ -143,17 +143,19 @@ pub struct Data {
}
impl Data {
#[cfg(not(tarpaulin_include))]
/// create new instance of app data
pub async fn new() -> Arc<Self> {
let creds = ConfigBuilder::default()
pub fn get_creds() -> Config {
ConfigBuilder::default()
.username_case_mapped(true)
.profanity(true)
.blacklist(true)
.password_policy(PasswordPolicy::default())
.build()
.unwrap();
.unwrap()
}
#[cfg(not(tarpaulin_include))]
/// create new instance of app data
pub async fn new() -> Arc<Self> {
let creds = Self::get_creds();
let c = creds.clone();
let init = thread::spawn(move || {