diff --git a/.gitignore b/.gitignore index 10363bd..05aafb1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ !/cli/ !Cargo.toml !/*/src/ +!/*/src/**/ !/*/src/**/*.rs diff --git a/cli/src/main.rs b/cli/src/main.rs index 26f1cec..8fff792 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -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; } };