Skip to content

Commit

Permalink
Fixed #14
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
  • Loading branch information
bobozaur committed Nov 20, 2023
1 parent 6681cc1 commit 461d584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

- [#14](https://github.com/bobozaur/sqlx-exasol/issues/14): Simplify `ExaSocket` `AsyncWrite::poll_flush()` impl.
- [#19](https://github.com/bobozaur/sqlx-exasol/pull/19): README fixes.

## [0.7.1-alpha-4] - 2023-10-26
Expand Down
4 changes: 1 addition & 3 deletions src/connection/websocket/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ impl AsyncWrite for ExaSocket {
}

fn poll_flush(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<IoResult<()>> {
// The `as_mut()` call is VERY important as currently
// Box<dyn Stream> does not override the `poll_flush()` method.
self.inner.as_mut().poll_flush(cx)
self.inner.poll_flush(cx)
}

fn poll_close(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<IoResult<()>> {
Expand Down

0 comments on commit 461d584

Please sign in to comment.