Update deps

This commit is contained in:
2023-09-22 19:24:18 +02:00
parent aca73a3d80
commit c73fa8f040
4 changed files with 85 additions and 216 deletions

View File

@@ -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;
}