Skip to content

Commit

Permalink
fix: use tokio::spawn instead of actix_web::rt::spawn in spawn_ping
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogois committed Dec 6, 2024
1 parent 3072217 commit ba0f10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/http/broadcaster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl Broadcaster {
/// Pings clients every 30 seconds to see if they are alive and remove them from the broadcast
/// list if not.
fn spawn_ping(this: Arc<Self>) {
actix_web::rt::spawn(async move {
tokio::spawn(async move {
let mut interval = interval(Duration::from_secs(30));

loop {
Expand Down

0 comments on commit ba0f10b

Please sign in to comment.