mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-24 12:13:05 +00:00
bbr: avoid unwrapping a value we just set
This commit is contained in:
committed by
Benjamin Saunders
parent
92ab452e1b
commit
a87b3262ff
@@ -84,7 +84,7 @@ impl BandwidthEstimation {
|
||||
} else {
|
||||
BandwidthEstimation::bw_from_delta(
|
||||
self.total_acked - self.prev_total_acked,
|
||||
self.acked_time.unwrap() - self.prev_acked_time.unwrap(),
|
||||
now - self.prev_acked_time.unwrap(),
|
||||
)
|
||||
.unwrap_or(0)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user