You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: interceptor/src/nack/responder/mod.rs
+14-9
Original file line number
Diff line number
Diff line change
@@ -89,19 +89,24 @@ impl ResponderInternal {
89
89
let stream3 = Arc::clone(&stream2);
90
90
91
91
Box::pin(asyncmove{
92
-
ifletSome(p) = stream3.get(seq).await{
93
-
let should_send = max_packet_age
94
-
.map(|max_age| p.age() < max_age)
95
-
.unwrap_or(true);
96
-
92
+
let p = match stream3.get(seq).await{
93
+
None => returntrue,
94
+
Some(p) => p,
95
+
};
96
+
97
+
ifletSome(max_packet_age) = max_packet_age {
98
+
let packet_age = p.age();
99
+
let should_send = packet_age < max_packet_age;
97
100
if !should_send {
101
+
log::debug!("Not resending packet {} as it's older than the configured max age {}s. Packet was initially sent {}s ago", p.packet.header.sequence_number, max_packet_age.as_secs_f64(), packet_age.as_secs_f64());
0 commit comments