Skip to content

Commit

Permalink
remove_entry -> swap_remove_entry in quic.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
miralandlabs committed Feb 6, 2024
1 parent 6dd7613 commit 3f4e30e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamer/src/nonblocking/quic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1126,8 +1126,8 @@ impl ConnectionTable {
});
let new_size = e_ref.len();
if e_ref.is_empty() {
e.remove_entry();
// e.swap_remove_entry();
// e.remove_entry();
e.swap_remove_entry();
}
let connections_removed = old_size.saturating_sub(new_size);
self.total_size = self.total_size.saturating_sub(connections_removed);
Expand Down

0 comments on commit 3f4e30e

Please sign in to comment.