Skip to content

Commit

Permalink
backward comp
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Aug 10, 2021
1 parent 4705f2a commit 5d0f60f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
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-amqp"
version = "0.5.0-b.3"
version = "0.5.0-b.4"
authors = ["ntex contributors <[email protected]>"]
description = "AMQP 1.0 Client/Server framework"
documentation = "https://docs.rs/ntex-amqp"
Expand Down
5 changes: 5 additions & 0 deletions src/rcvlink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,4 +375,9 @@ impl ReceiverLinkBuilder {
Err(_) => Err(AmqpProtocolError::Disconnected),
}
}

#[doc(hidden)]
pub async fn open(self) -> Result<ReceiverLink, AmqpProtocolError> {
self.attach().await
}
}
5 changes: 5 additions & 0 deletions src/sndlink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,11 @@ impl SenderLinkBuilder {
Err(_) => Err(AmqpProtocolError::Disconnected),
}
}

#[doc(hidden)]
pub async fn open(self) -> Result<SenderLink, AmqpProtocolError> {
self.attach().await
}
}

enum Delivery {
Expand Down

0 comments on commit 5d0f60f

Please sign in to comment.