simplify return value of flush_status_updates() (#3597)

this was probably forgotten by recent refactorings in this area.
This commit is contained in:
bjoern
2022-09-11 23:21:00 +02:00
committed by GitHub
parent 5b518e588f
commit 06873ed04f

View File

@@ -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<bool> {
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