skip if empty waitinglist
This commit is contained in:
parent
b09e8eafbb
commit
47c353c7da
2 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue