From 06873ed04f1144b4ef97400f92266ffb47e0bb0f Mon Sep 17 00:00:00 2001 From: bjoern Date: Sun, 11 Sep 2022 23:21:00 +0200 Subject: [PATCH] simplify return value of `flush_status_updates()` (#3597) this was probably forgotten by recent refactorings in this area. --- src/webxdc.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/webxdc.rs b/src/webxdc.rs index 05fa96875..3d21d0f4d 100644 --- a/src/webxdc.rs +++ b/src/webxdc.rs @@ -414,15 +414,12 @@ impl Context { } /// Attempts to send queued webxdc status updates. - /// - /// Returns true if there are more status updates to send, but rate limiter does not - /// allow to send them. Returns false if there are no more status updates to send. - pub(crate) async fn flush_status_updates(&self) -> Result { + pub(crate) async fn flush_status_updates(&self) -> Result<()> { loop { let (instance_id, first_serial, last_serial, descr) = match self.pop_smtp_status_update().await? { Some(res) => res, - None => return Ok(false), + None => return Ok(()), }; if let Some(json) = self