Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed May 12, 2024
1 parent 47a5eae commit 3f4db8f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

* Remove protocol variant services

* Disable keep-alive timer is not configured
* Disable keep-alive timer if not configured

* Add write back-pressure to io dispatcher

## [1.1.0] - 2024-03-07

Expand Down
1 change: 0 additions & 1 deletion src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,6 @@ mod tests {
/// Do not use keep-alive timer if not configured
#[ntex::test]
async fn test_no_keepalive_err_after_frame_timeout() {
env_logger::init();
let (client, server) = Io::create();
client.remote_buffer_cap(1024);

Expand Down
5 changes: 2 additions & 3 deletions src/v3/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,11 @@ where
inner.inflight.borrow_mut().remove(&res.packet_id);
Some(codec::Packet::UnsubscribeAck { packet_id: res.packet_id })
}
ControlAckKind::Disconnect
| ControlAckKind::Closed
| ControlAckKind::Nothing => {
ControlAckKind::Disconnect => {
inner.sink.close();
None
}
ControlAckKind::Closed | ControlAckKind::Nothing => None,
ControlAckKind::PublishAck(_) => unreachable!(),
};
return Ok(packet);
Expand Down

0 comments on commit 3f4db8f

Please sign in to comment.