@@ -6,9 +6,9 @@ use ntex_util::{HashMap, future::Either, future::Ready};
66use slab:: Slab ;
77
88use ntex_amqp_codec:: protocol:: {
9- self as codec, Accepted , Attach , DeliveryNumber , DeliveryState , Detach , Disposition , End ,
10- Error , Flow , Frame , Handle , MessageFormat , ReceiverSettleMode , Role , SenderSettleMode , Source ,
11- Transfer , TransferBody , TransferNumber ,
9+ self as codec, Accepted , Attach , Begin , DeliveryNumber , DeliveryState , Detach , Disposition ,
10+ End , Error , Flow , Frame , Handle , MessageFormat , ReceiverSettleMode , Role , SenderSettleMode ,
11+ Source , Transfer , TransferBody , TransferNumber ,
1212} ;
1313use ntex_amqp_codec:: { AmqpFrame , Encode } ;
1414
@@ -33,6 +33,7 @@ pub(crate) struct SessionInner {
3333 sink : ConnectionRef ,
3434 next_outgoing_id : TransferNumber ,
3535 flags : Flags ,
36+ begin : Begin ,
3637
3738 remote_channel_id : u16 ,
3839 next_incoming_id : TransferNumber ,
@@ -291,9 +292,9 @@ impl SessionInner {
291292 begin : Begin ,
292293 ) -> SessionInner {
293294 SessionInner {
294- next_incoming_id : begin. next_incoming_id ( ) ,
295- remote_incoming_window : begin. remote_incoming_window ( ) ,
296- remote_outgoing_window : begin. remote_outgoing_window ( ) ,
295+ next_incoming_id : begin. next_outgoing_id ( ) ,
296+ remote_incoming_window : begin. incoming_window ( ) ,
297+ remote_outgoing_window : begin. outgoing_window ( ) ,
297298 flags : if local { Flags :: LOCAL } else { Flags :: empty ( ) } ,
298299 next_outgoing_id : INITIAL_NEXT_OUTGOING_ID ,
299300 unsettled_snd_deliveries : HashMap :: default ( ) ,
0 commit comments