skip if empty waitinglist

This commit is contained in:
Jonas Rabenstein 2026-03-12 22:19:53 +01:00
commit 47c353c7da
2 changed files with 7 additions and 2 deletions

View file

@ -237,6 +237,11 @@ async fn main() -> Result<()> {
}) {
log::debug!("{:?}", spond.responses);
if spond.responses.waitinglist_ids.is_empty() {
log::info!("nobody on the waiting list");
continue;
}
let spond = &spond;
let decline = |id: &api::MemberId| {
log::info!("remove {0}", *id);
@ -313,8 +318,7 @@ async fn main() -> Result<()> {
responses = accept(&id).await?;
extra.push(id);
}
tokio::time::sleep(tokio::time::Duration::from_secs(10)).await;
tokio::time::sleep(tokio::time::Duration::from_secs(5)).await;
}
};