Brought Example up to spec
Some checks failed
CI / checks (push) Failing after 3m29s

This commit is contained in:
Alex Emmet 2026-07-19 00:29:24 +02:00
commit 1b796d0ce7
46 changed files with 1755 additions and 691 deletions

View file

@ -57,7 +57,7 @@ pub(crate) fn start_ping_session(
}
_ = ticker.tick() => {
if max_missed_pings > 0 && !pending.is_empty() && pending.len() >= max_missed_pings {
sender.close();
sender.close().await;
break;
}
@ -80,7 +80,7 @@ pub(crate) fn start_ping_session(
}
let id = ping.get_id();
if sender.send(&ping).await.is_err() {
sender.close();
sender.close().await;
break;
}
pending.insert(id, Instant::now());