perf(baseliner): bound the reselection channel to prevent memory buildup

Change the reselection channel from unbounded to a size of 1 and use non-blocking sends to avoid unnecessary queuing of reselection triggers.
This commit is contained in:
Nils Andreas Svee committed 2026-07-17 11:39:07 +07:00
1 parent 9811592f13
commit 50f0dcb4dd
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -308,7 +308,7 @@ impl<S: InterfaceStatsProvider, T: TrafficControlBackend> Ratecontroller<S, T> {
state_dl.deltas.len(),
state_ul.deltas.len()
);
let _ = self.reselect_trigger.send(true);
let _ = self.reselect_trigger.try_send(true);
}
Ok(())