Skip to content

Commit

Permalink
Remove unnecessary readiness
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Leimkuhler <[email protected]>
  • Loading branch information
kleimkuhler committed Nov 13, 2019
1 parent 1693838 commit 0263c98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokio/src/net/util/io_resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ where
///
/// * called from outside of a task context.
pub fn poll_read_ready(&self, cx: &mut Context<'_>) -> Poll<io::Result<Readiness>> {
let mask = Readiness::READABLE | Readiness::READ_CLOSED;
let mask = Readiness::READABLE;
poll_readiness!(
self,
read_readiness,
Expand Down Expand Up @@ -263,7 +263,7 @@ where
///
/// * called from outside of a task context.
pub fn poll_write_ready(&self, cx: &mut Context<'_>) -> Poll<io::Result<Readiness>> {
let mask = Readiness::WRITABLE | Readiness::WRITE_CLOSED;
let mask = Readiness::WRITABLE;
poll_readiness!(
self,
write_readiness,
Expand Down

0 comments on commit 0263c98

Please sign in to comment.