This commit is contained in:
2023-06-21 13:38:17 +02:00
parent a369f470b8
commit 9e7922d03c
13 changed files with 113 additions and 78 deletions

View File

@@ -1,5 +1,7 @@
pub mod bot_manager_client;
use smartstring::alias::String as SmartString;
use std::collections::HashMap;
use std::net::SocketAddr;
use std::sync::atomic::{AtomicBool, Ordering};
@@ -26,7 +28,7 @@ use crate::config;
#[derive(Clone)]
pub struct AppState {
pub user_activity_cache: Cache<UserId, ()>,
pub user_langs_cache: Cache<UserId, SmallVec<[String; 3]>>,
pub user_langs_cache: Cache<UserId, SmallVec<[SmartString; 3]>>,
pub chat_donation_notifications_cache: Cache<ChatId, ()>,
}