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:
@ -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();
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user