Fix the five second delay in Wasm after initial connection (#3478)

This commit is contained in:
Rushmore Mushambi 2024-02-11 14:36:47 +02:00 committed by GitHub
parent 454509e4d1
commit 634a2baeac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 4 deletions

View file

@ -198,8 +198,6 @@ pub(crate) fn router(
let mut interval = time::interval(PING_INTERVAL);
// don't bombard the server with pings if we miss some ticks
interval.set_missed_tick_behavior(MissedTickBehavior::Delay);
// Delay sending the first ping
interval.tick().await;
let pinger = IntervalStream::new(interval);

View file

@ -171,8 +171,6 @@ pub(crate) fn router(
let mut interval = time::interval(PING_INTERVAL);
// don't bombard the server with pings if we miss some ticks
interval.set_missed_tick_behavior(MissedTickBehavior::Delay);
// Delay sending the first ping
interval.tick().await;
let pinger = IntervalStream::new(interval);