Fix more compiler problems

This commit is contained in:
Hocuri
2022-05-05 12:26:52 +02:00
committed by Septias
parent 63162394f6
commit e6ae2170a8
2 changed files with 8 additions and 7 deletions

View File

@@ -1287,7 +1287,12 @@ pub async fn delete_msgs(context: &Context, msg_ids: &[MsgId]) -> Result<()> {
context.emit_msgs_changed_without_ids();
// Run housekeeping to delete unused blobs.
context.set_config(Config::LastHousekeeping, None).await?;
// We need to use set_raw_config() here since with set_config() it
// wouldn't compile ("recursion in an `async fn`")
context
.sql
.set_raw_config(Config::LastHousekeeping, None)
.await?;
}
// Interrupt Inbox loop to start message deletion and run housekeeping.