mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Update deps
This commit is contained in:
@@ -9,7 +9,7 @@ pub async fn send_donation_notification(
|
||||
bot: CacheMe<Throttle<Bot>>,
|
||||
message: Message,
|
||||
) -> BotHandlerInternal {
|
||||
if CHAT_DONATION_NOTIFICATIONS_CACHE.get(&message.chat.id).is_some() {
|
||||
if CHAT_DONATION_NOTIFICATIONS_CACHE.get(&message.chat.id).await.is_some() {
|
||||
return Ok(());
|
||||
} else if !is_need_donate_notifications(message.chat.id).await? {
|
||||
CHAT_DONATION_NOTIFICATIONS_CACHE.insert(message.chat.id, ()).await;
|
||||
|
||||
@@ -43,7 +43,7 @@ pub async fn get_user_settings(
|
||||
pub async fn get_user_or_default_lang_codes(
|
||||
user_id: UserId,
|
||||
) -> SmallVec<[SmartString; 3]> {
|
||||
if let Some(cached_langs) = USER_LANGS_CACHE.get(&user_id) {
|
||||
if let Some(cached_langs) = USER_LANGS_CACHE.get(&user_id).await {
|
||||
return cached_langs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user