Skip to content

Commit

Permalink
streaming-spike: remove redundant ping
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Dec 5, 2024
1 parent 0227a51 commit 2abc296
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/src/http/broadcaster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ impl Broadcaster {

self.inner.lock().clients.push(tx);

Sse::from_infallible_receiver(rx).with_keep_alive(Duration::from_secs(30))
Sse::from_infallible_receiver(rx)
// we're already using remove_stale_clients to clean up disconnected
// clients and send heartbeats. we probably don't need this.
// .with_keep_alive(Duration::from_secs(30))
}

/// re-~roadcasts `data` to all clients.
Expand Down

0 comments on commit 2abc296

Please sign in to comment.