1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

migrate ci to github actions (#367)

This commit is contained in:
Rob Ede
2020-09-16 01:11:49 +01:00
committed by GitHub
parent e3c6a1ec07
commit d836b046c9
11 changed files with 6522 additions and 77 deletions

View File

@ -75,7 +75,7 @@ impl Broadcaster {
fn spawn_ping(me: Data<Mutex<Self>>) {
actix_web::rt::spawn(async move {
let mut task = interval_at(Instant::now(), Duration::from_secs(10));
while let Some(_) = task.next().await {
while task.next().await.is_some() {
me.lock().unwrap().remove_stale_clients();
}
})