Fix the five second delay in Wasm after initial connection (#3478)
This commit is contained in:
parent
454509e4d1
commit
634a2baeac
2 changed files with 0 additions and 4 deletions
|
@ -198,8 +198,6 @@ pub(crate) fn router(
|
||||||
let mut interval = time::interval(PING_INTERVAL);
|
let mut interval = time::interval(PING_INTERVAL);
|
||||||
// don't bombard the server with pings if we miss some ticks
|
// don't bombard the server with pings if we miss some ticks
|
||||||
interval.set_missed_tick_behavior(MissedTickBehavior::Delay);
|
interval.set_missed_tick_behavior(MissedTickBehavior::Delay);
|
||||||
// Delay sending the first ping
|
|
||||||
interval.tick().await;
|
|
||||||
|
|
||||||
let pinger = IntervalStream::new(interval);
|
let pinger = IntervalStream::new(interval);
|
||||||
|
|
||||||
|
|
|
@ -171,8 +171,6 @@ pub(crate) fn router(
|
||||||
let mut interval = time::interval(PING_INTERVAL);
|
let mut interval = time::interval(PING_INTERVAL);
|
||||||
// don't bombard the server with pings if we miss some ticks
|
// don't bombard the server with pings if we miss some ticks
|
||||||
interval.set_missed_tick_behavior(MissedTickBehavior::Delay);
|
interval.set_missed_tick_behavior(MissedTickBehavior::Delay);
|
||||||
// Delay sending the first ping
|
|
||||||
interval.tick().await;
|
|
||||||
|
|
||||||
let pinger = IntervalStream::new(interval);
|
let pinger = IntervalStream::new(interval);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue