Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Oct 7, 2024
1 parent 0478506 commit dae5faf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions neqo-transport/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3083,7 +3083,6 @@ impl Connection {
let Some(path) = self.paths.primary() else {
return;
};

let (acked_packets, lost_packets) = self.loss_recovery.on_ack_received(
&path,
space,
Expand Down Expand Up @@ -3116,8 +3115,8 @@ impl Connection {
qlog::packets_lost(&self.qlog, &lost_packets);
let stats = &mut self.stats.borrow_mut().frame_rx;
stats.ack += 1;
if let Some(la) = largest_acknowledged {
stats.largest_acknowledged = max(stats.largest_acknowledged, la);
if let Some(largest_acknowledged) = largest_acknowledged {
stats.largest_acknowledged = max(stats.largest_acknowledged, largest_acknowledged);
}
}

Expand Down

0 comments on commit dae5faf

Please sign in to comment.