Skip to content

Commit dc63340

Browse files
committed
fix: do not ignore update_recent_quota errors
1 parent ad13477 commit dc63340

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/context.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,9 +594,9 @@ impl Context {
594594
.quota_needs_update(DC_BACKGROUND_FETCH_QUOTA_CHECK_RATELIMIT)
595595
.await
596596
{
597-
if let Err(err) = self.update_recent_quota(&mut session).await {
598-
warn!(self, "Failed to update quota: {err:#}.");
599-
}
597+
self.update_recent_quota(&mut session)
598+
.await
599+
.context("Failed to update quota")?;
600600
}
601601
}
602602

src/scheduler.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,9 @@ async fn inbox_fetch_idle(ctx: &Context, imap: &mut Imap, mut session: Session)
481481

482482
// Update quota no more than once a minute.
483483
if ctx.quota_needs_update(60).await {
484-
if let Err(err) = ctx.update_recent_quota(&mut session).await {
485-
warn!(ctx, "Failed to update quota: {:#}.", err);
486-
}
484+
ctx.update_recent_quota(&mut session)
485+
.await
486+
.context("Failed to update quota")?;
487487
}
488488

489489
let resync_requested = ctx.resync_request.swap(false, Ordering::Relaxed);

0 commit comments

Comments
 (0)