Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Nov 4, 2023
1 parent d9fd2dc commit 7dccc86
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## [0.12.7] - 2023-11-04

* Fix v5::Subscribe packet encoding

## [0.12.6] - 2023-10-31

* Send server ConnectAck without io flushing
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-mqtt"
version = "0.12.6"
version = "0.12.7"
authors = ["ntex contributors <[email protected]>"]
description = "Client and Server framework for MQTT v5 and v3.1.1 protocols"
documentation = "https://docs.rs/ntex-mqtt"
Expand Down
1 change: 1 addition & 0 deletions src/v5/codec/packet/subscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ mod tests {
let size = pkt.encoded_size(99999);
let mut buf = BytesMut::with_capacity(size);
pkt.encode(&mut buf, size as u32).unwrap();
assert_eq!(buf.len(), size);
assert_eq!(pkt, Subscribe::decode(&mut buf.freeze()).unwrap());
}

Expand Down

0 comments on commit 7dccc86

Please sign in to comment.