Move the call to AdaptLowerBounds so it's called on every congestion event. It already exits early if it's not the end of the round, so this is not a functional change. In preparation for cr/305164640
PiperOrigin-RevId: 347382095
Change-Id: I28c336a713d14254a004e9af1620aef1dfd88000
diff --git a/quic/core/congestion_control/bbr2_misc.cc b/quic/core/congestion_control/bbr2_misc.cc
index 62b721a..700995f 100644
--- a/quic/core/congestion_control/bbr2_misc.cc
+++ b/quic/core/congestion_control/bbr2_misc.cc
@@ -168,13 +168,12 @@
inflight_latest_ = sample.sample_max_inflight;
}
+ AdaptLowerBounds(*congestion_event);
+
if (!congestion_event->end_of_round_trip) {
return;
}
- // Per round-trip updates.
- AdaptLowerBounds(*congestion_event);
-
if (!sample.sample_max_bandwidth.IsZero()) {
bandwidth_latest_ = sample.sample_max_bandwidth;
}