refactor(client): make deadline indexing allocation-free

This commit is contained in:
Nils Andreas Svee committed 2026-08-10 01:56:49 +07:00
1 parent 4632e310d7
commit f65998ff70
4 files changed
+238 -91

No files matched your search

+8
View File
@@ -773,6 +773,14 @@ impl AsyncClient {
self.socket.poll_recv_ready(cx)
}
#[cfg(test)]
pub(crate) fn remove_pending_for_test(
&mut self,
wire_seq: u32,
) -> Option<crate::probe::PendingProbe> {
self.machine.remove_pending_for_test(wire_seq)
}
#[cfg(test)]
pub(crate) fn replace_pending_for_test(&mut self, probe: crate::probe::PendingProbe) {
self.machine.replace_pending_for_test(probe);