mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +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)
|
.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")?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user