Skip to content

Commit

Permalink
Add Session::connection() method, return ref to Connection
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Aug 10, 2021
1 parent 154f597 commit 4705f2a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Changes

## [0.5.0-b.3] - 2021-08-xx
## [0.5.0-b.3] - 2021-08-10

* Add Session::connection() method, returns ref to Connection

* Add stream handling for transfer dispositions

* Refactor sender link disposition handling

## [codec-0.6.1] - 2021-08-0x
## [codec-0.6.1] - 2021-08-10

* Regenerate spec with inlines

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ frame-trace = []

[dependencies]
ntex = "0.4.0-b.1"
ntex-amqp-codec = "0.6.0"
ntex-amqp-codec = "0.6.1"

bitflags = "1.2"
derive_more = "0.99"
Expand Down
4 changes: 4 additions & 0 deletions src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ impl Session {
Session { inner }
}

pub fn connection(&self) -> &Connection {
&self.inner.get_ref().sink
}

pub fn close(&self) -> impl Future<Output = Result<(), AmqpProtocolError>> {
Ready::Ok(())
}
Expand Down

0 comments on commit 4705f2a

Please sign in to comment.