Skip to content

Commit 6513599

Browse files
authored
Set next_incoming_id for Flow frame (#57)
1 parent f4a801d commit 6513599

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes
22

3+
## [3.1.0] - 2024-12-01
4+
5+
* Set "next_incoming_id" for Flow frame
6+
37
## [3.0.4] - 2024-09-17
48

59
* Use derive_more 1.0

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ntex-amqp"
3-
version = "3.0.4"
3+
version = "3.1.0"
44
authors = ["ntex contributors <[email protected]>"]
55
description = "AMQP 1.0 Client/Server framework"
66
documentation = "https://docs.rs/ntex-amqp"

src/session.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1188,11 +1188,7 @@ impl SessionInner {
11881188

11891189
pub(crate) fn rcv_link_flow(&mut self, handle: u32, delivery_count: u32, credit: u32) {
11901190
let flow = Flow(Box::new(codec::FlowInner {
1191-
next_incoming_id: if self.flags.contains(Flags::LOCAL) {
1192-
Some(self.next_incoming_id)
1193-
} else {
1194-
None
1195-
},
1191+
next_incoming_id: Some(self.next_incoming_id),
11961192
incoming_window: u32::MAX,
11971193
next_outgoing_id: self.next_outgoing_id,
11981194
outgoing_window: self.remote_incoming_window,

0 commit comments

Comments
 (0)