mirror of
https://github.com/chatmail/core.git
synced 2026-05-01 20:36:31 +03:00
clippy fix
This commit is contained in:
@@ -427,13 +427,9 @@ impl Context {
|
|||||||
pub(crate) async fn flush_status_updates(&self) -> Result<bool> {
|
pub(crate) async fn flush_status_updates(&self) -> Result<bool> {
|
||||||
let update_needed = get_busy_webxdc_instances(&self.sql).await?;
|
let update_needed = get_busy_webxdc_instances(&self.sql).await?;
|
||||||
|
|
||||||
loop {
|
while let Some((instance_id, first_serial, last_serial, descr)) =
|
||||||
let (instance_id, first_serial, last_serial, descr) =
|
self.pop_smtp_status_update().await?
|
||||||
match self.pop_smtp_status_update().await? {
|
{
|
||||||
Some(res) => res,
|
|
||||||
None => break,
|
|
||||||
};
|
|
||||||
|
|
||||||
if let Some(json) = self
|
if let Some(json) = self
|
||||||
.render_webxdc_status_update_object(instance_id, Some((first_serial, last_serial)))
|
.render_webxdc_status_update_object(instance_id, Some((first_serial, last_serial)))
|
||||||
.await?
|
.await?
|
||||||
|
|||||||
Reference in New Issue
Block a user