mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
fix: do not ignore update_recent_quota errors
This commit is contained in:
@@ -594,9 +594,9 @@ impl Context {
|
||||
.quota_needs_update(DC_BACKGROUND_FETCH_QUOTA_CHECK_RATELIMIT)
|
||||
.await
|
||||
{
|
||||
if let Err(err) = self.update_recent_quota(&mut session).await {
|
||||
warn!(self, "Failed to update quota: {err:#}.");
|
||||
}
|
||||
self.update_recent_quota(&mut session)
|
||||
.await
|
||||
.context("Failed to update quota")?;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -481,9 +481,9 @@ async fn inbox_fetch_idle(ctx: &Context, imap: &mut Imap, mut session: Session)
|
||||
|
||||
// Update quota no more than once a minute.
|
||||
if ctx.quota_needs_update(60).await {
|
||||
if let Err(err) = ctx.update_recent_quota(&mut session).await {
|
||||
warn!(ctx, "Failed to update quota: {:#}.", err);
|
||||
}
|
||||
ctx.update_recent_quota(&mut session)
|
||||
.await
|
||||
.context("Failed to update quota")?;
|
||||
}
|
||||
|
||||
let resync_requested = ctx.resync_request.swap(false, Ordering::Relaxed);
|
||||
|
||||
Reference in New Issue
Block a user