fix: do not ignore update_recent_quota errors

This commit is contained in:
link2xt
2025-07-17 20:03:30 +00:00
parent ad13477754
commit dc63340471
2 changed files with 6 additions and 6 deletions

View File

@@ -594,9 +594,9 @@ impl Context {
.quota_needs_update(DC_BACKGROUND_FETCH_QUOTA_CHECK_RATELIMIT) .quota_needs_update(DC_BACKGROUND_FETCH_QUOTA_CHECK_RATELIMIT)
.await .await
{ {
if let Err(err) = self.update_recent_quota(&mut session).await { self.update_recent_quota(&mut session)
warn!(self, "Failed to update quota: {err:#}."); .await
} .context("Failed to update quota")?;
} }
} }

View File

@@ -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. // Update quota no more than once a minute.
if ctx.quota_needs_update(60).await { if ctx.quota_needs_update(60).await {
if let Err(err) = ctx.update_recent_quota(&mut session).await { ctx.update_recent_quota(&mut session)
warn!(ctx, "Failed to update quota: {:#}.", err); .await
} .context("Failed to update quota")?;
} }
let resync_requested = ctx.resync_request.swap(false, Ordering::Relaxed); let resync_requested = ctx.resync_request.swap(false, Ordering::Relaxed);