Skip to content

Commit

Permalink
Set next_incoming_id for Flow frame (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 authored Dec 2, 2024
1 parent f4a801d commit 6513599
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## [3.1.0] - 2024-12-01

* Set "next_incoming_id" for Flow frame

## [3.0.4] - 2024-09-17

* Use derive_more 1.0
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ntex-amqp"
version = "3.0.4"
version = "3.1.0"
authors = ["ntex contributors <[email protected]>"]
description = "AMQP 1.0 Client/Server framework"
documentation = "https://docs.rs/ntex-amqp"
Expand Down
6 changes: 1 addition & 5 deletions src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1188,11 +1188,7 @@ impl SessionInner {

pub(crate) fn rcv_link_flow(&mut self, handle: u32, delivery_count: u32, credit: u32) {
let flow = Flow(Box::new(codec::FlowInner {
next_incoming_id: if self.flags.contains(Flags::LOCAL) {
Some(self.next_incoming_id)
} else {
None
},
next_incoming_id: Some(self.next_incoming_id),
incoming_window: u32::MAX,
next_outgoing_id: self.next_outgoing_id,
outgoing_window: self.remote_incoming_window,
Expand Down

0 comments on commit 6513599

Please sign in to comment.