@@ -89,7 +89,7 @@ pub struct RetransmissionQueue {
8989 rtx_bytes_count : u64 ,
9090
9191 /// If set, fast recovery is enabled until this TSN has been cumulative acked.
92- fast_recoverty_exit_tsn : Option < Tsn > ,
92+ fast_recovery_exit_tsn : Option < Tsn > ,
9393
9494 /// All the outstanding data chunks that are in-flight and that have not been cumulative acked.
9595 /// Note that it also contains chunks that have been acked in gap ack blocks.
@@ -127,7 +127,7 @@ impl RetransmissionQueue {
127127 partial_bytes_acked : 0 ,
128128 rtx_packets_count : 0 ,
129129 rtx_bytes_count : 0 ,
130- fast_recoverty_exit_tsn : None ,
130+ fast_recovery_exit_tsn : None ,
131131 outstanding_data : OutstandingData :: new ( data_chunk_header_size, my_initial_tsn - 1 ) ,
132132 t3_rtx : Timer :: new (
133133 options. rto_initial ,
@@ -183,15 +183,15 @@ impl RetransmissionQueue {
183183 }
184184
185185 fn maybe_exit_fast_recovery ( & mut self , cumulative_tsn_ack : Tsn ) {
186- if let Some ( fast_recoverty_exit_tsn ) = self . fast_recoverty_exit_tsn {
187- if cumulative_tsn_ack >= fast_recoverty_exit_tsn {
188- self . fast_recoverty_exit_tsn = None ;
186+ if let Some ( fast_recovery_exit_tsn ) = self . fast_recovery_exit_tsn {
187+ if cumulative_tsn_ack >= fast_recovery_exit_tsn {
188+ self . fast_recovery_exit_tsn = None ;
189189 }
190190 }
191191 }
192192
193193 fn is_in_fast_recovery ( & self ) -> bool {
194- self . fast_recoverty_exit_tsn . is_some ( )
194+ self . fast_recovery_exit_tsn . is_some ( )
195195 }
196196
197197 fn update_receiver_window ( & mut self , a_rwnd : usize ) {
@@ -304,10 +304,10 @@ impl RetransmissionQueue {
304304 //
305305 // If not in Fast Recovery, enter Fast Recovery and mark the highest outstanding TSN
306306 // as the Fast Recovery exit point.
307- self . fast_recoverty_exit_tsn = Some ( self . outstanding_data . highest_outstanding_tsn ( ) ) ;
307+ self . fast_recovery_exit_tsn = Some ( self . outstanding_data . highest_outstanding_tsn ( ) ) ;
308308 log:: debug!(
309309 "fast recovery initiated with exit_point={}" ,
310- self . fast_recoverty_exit_tsn . unwrap( )
310+ self . fast_recovery_exit_tsn . unwrap( )
311311 ) ;
312312 } else {
313313 // From <https://datatracker.ietf.org/doc/html/rfc9260#section-7.2.4-5.6.1>:
@@ -706,7 +706,7 @@ impl RetransmissionQueue {
706706 pub ( crate ) fn get_handover_readiness ( & self ) -> HandoverReadiness {
707707 HandoverReadiness :: RETRANSMISSION_QUEUE_OUTSTANDING_DATA & !self . outstanding_data . is_empty ( )
708708 | ( HandoverReadiness :: RETRANSMISSION_QUEUE_FAST_RECOVERY
709- & self . fast_recoverty_exit_tsn . is_some ( ) )
709+ & self . fast_recovery_exit_tsn . is_some ( ) )
710710 | ( HandoverReadiness :: RETRANSMISSION_QUEUE_NOT_EMPTY
711711 & self . outstanding_data . has_data_to_be_retransmitted ( ) )
712712 }
0 commit comments