Skip to content

Commit

Permalink
Notify on QoS2 pubcomp
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaocq2001 committed Jul 3, 2024
1 parent a63216f commit fb290fb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions rumqttc/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,6 @@ impl MqttState {
.remove(&pubrec.pkid)
.ok_or(StateError::Unsolicited(pubrec.pkid))?;

// TODO: deprecated
// Notify user about the publish, pubrel and pubcomp will be handled in background
// tx.success();

// NOTE: Inflight - 1 for qos2 in comp
self.outgoing_rel.insert(pubrec.pkid, tx);
let pubrel = PubRel { pkid: pubrec.pkid };
Expand Down
5 changes: 0 additions & 5 deletions rumqttc/src/v5/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,11 +448,6 @@ impl MqttState {
return Err(StateError::PubRecFail {
reason: pubrec.reason,
});
} else {

// TODO: deprecated
// Notifying the PUBREC from broker, PUBREL and PUBCOMP will be in backgroud
// tx.success();
}

// NOTE: Inflight - 1 for qos2 in comp
Expand Down

0 comments on commit fb290fb

Please sign in to comment.