File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
quinn-proto/src/connection Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -1523,7 +1523,7 @@ impl Connection {
15231523 Duration :: from_micros ( ack. delay << self . peer_params . ack_delay_exponent . 0 ) ,
15241524 )
15251525 } ;
1526- let rtt = instant_saturating_sub ( now, self . spaces [ space] . largest_acked_packet_sent ) ;
1526+ let rtt = now. saturating_duration_since ( self . spaces [ space] . largest_acked_packet_sent ) ;
15271527 self . path . rtt . update ( ack_delay, rtt) ;
15281528 if self . path . first_packet_after_rtt_sample . is_none ( ) {
15291529 self . path . first_packet_after_rtt_sample =
@@ -4056,10 +4056,6 @@ pub enum Event {
40564056 DatagramsUnblocked ,
40574057}
40584058
4059- fn instant_saturating_sub ( x : Instant , y : Instant ) -> Duration {
4060- if x > y { x - y } else { Duration :: ZERO }
4061- }
4062-
40634059fn get_max_ack_delay ( params : & TransportParameters ) -> Duration {
40644060 Duration :: from_micros ( params. max_ack_delay . 0 * 1000 )
40654061}
You can’t perform that action at this time.
0 commit comments