mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 11:26:29 +03:00
mimeparser: wrap try_decrypt() into block_in_place()
try_decrypt() is a CPU-bound task. When called from async function, it should be wrapped in tokio::task::spawn_blocking(). Using tokio::task::spawn_blocking() is difficult here because of &mail, &private_keyring and &public_keyring borrows, so we should at least use tokio::task::block_in_place() to avoid blocking the executor.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
- Make smeared timestamp generation non-async. #4075
|
||||
|
||||
### Fixes
|
||||
- Do not block async task executor while decrypting the messages. #4079
|
||||
|
||||
### API-Changes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user