mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 22:16:30 +03:00
Deduplicate peerstates during housekeeping
This commit is contained in:
@@ -20,7 +20,7 @@ use crate::dc_tools::{dc_delete_file, time};
|
||||
use crate::ephemeral::start_ephemeral_timers;
|
||||
use crate::message::Message;
|
||||
use crate::param::{Param, Params};
|
||||
use crate::peerstate::Peerstate;
|
||||
use crate::peerstate::{deduplicate_peerstates, Peerstate};
|
||||
use crate::stock_str;
|
||||
|
||||
#[macro_export]
|
||||
@@ -598,6 +598,10 @@ pub async fn housekeeping(context: &Context) -> Result<()> {
|
||||
);
|
||||
}
|
||||
|
||||
if let Err(err) = deduplicate_peerstates(&context.sql).await {
|
||||
warn!(context, "Failed to deduplicate peerstates: {}", err)
|
||||
}
|
||||
|
||||
context.schedule_quota_update().await?;
|
||||
|
||||
if let Err(e) = context
|
||||
|
||||
Reference in New Issue
Block a user