Skip to content

Commit

Permalink
fixup! Implement MSubscribe::write
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasbeyer committed Mar 21, 2024
1 parent 72f23f8 commit ed1f2db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mqtt-format/src/v5/packets/subscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl SubscriptionOptions {
let retain_as_published = (self.retain_as_published as u8) << 3;
let retain_handling = (self.retain_handling as u8) << 4;

let sub_opts = qos & no_local & retain_as_published & retain_handling;
let sub_opts = qos | no_local | retain_as_published | retain_handling;

buffer.write_byte(sub_opts).await
}
Expand Down

0 comments on commit ed1f2db

Please sign in to comment.