mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Optimize
This commit is contained in:
@@ -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, ()>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user