Skip to content

Commit

Permalink
Merge pull request #218 from minghuaw/0.9-dev
Browse files Browse the repository at this point in the history
0.9.1
  • Loading branch information
minghuaw authored Dec 12, 2023
2 parents 91a8ab5 + c07ae91 commit 6e23046
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fe2o3-amqp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fe2o3-amqp"
version = "0.9.0"
version = "0.9.1"
edition = "2021"
description = "An implementation of AMQP1.0 protocol based on serde and tokio"
license = "MIT/Apache-2.0"
Expand Down
13 changes: 13 additions & 0 deletions fe2o3-amqp/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Change Log

## 0.9.1

1. Ported 0.7.31

## 0.8.25

1. Ported 0.7.31

## 0.7.31

1. Fixed problem with closing/ending of `Connection`/`Session` where the error found during the
handshake is not propagated to the user.

## 0.9.0

1. Unified versioning with other `fe2o3-amqp` crates
Expand Down
2 changes: 1 addition & 1 deletion fe2o3-amqp/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl<R> ConnectionHandle<R> {
/// [`on_close`](#method.on_close). This will cause the JoinHandle to be polled after
/// completion, which causes a panic.
pub async fn on_close(&mut self) -> Result<(), Error> {
if self.is_closed() {
if self.is_closed {
return Err(Error::IllegalState);
}
match (&mut self.outcome).await {
Expand Down
2 changes: 1 addition & 1 deletion fe2o3-amqp/src/session/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl<R> SessionHandle<R> {
/// [`end_with_error`](#method.end_with_error), [`on_end`](#on_end) has beend executed. This
/// will cause the JoinHandle to be polled after completion, which causes a panic.
pub async fn on_end(&mut self) -> Result<(), Error> {
if self.is_ended() {
if self.is_ended {
return Err(Error::IllegalState);
}

Expand Down

0 comments on commit 6e23046

Please sign in to comment.