mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 18:06:35 +03:00
refactor: replace async RwLock with sync RwLock for stock strings
This commit is contained in:
@@ -281,7 +281,7 @@ async fn send_stats(context: &Context) -> Result<ChatId> {
|
||||
let chat_id = get_stats_chat_id(context).await?;
|
||||
|
||||
let mut msg = Message::new(Viewtype::File);
|
||||
msg.set_text(crate::stock_str::stats_msg_body(context).await);
|
||||
msg.set_text(crate::stock_str::stats_msg_body(context));
|
||||
|
||||
let stats = get_stats(context).await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user