Skip to content

Commit 151d291

Browse files
Nemo157cramertj
authored andcommitted
Don't require a full flush before pushing next item in SendAll
1 parent f498126 commit 151d291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

futures-util/src/sink/send_all.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ where
8787
return Poll::Ready(Ok(()))
8888
}
8989
Poll::Pending => {
90-
ready!(Pin::new(&mut this.sink).poll_flush(cx))?;
90+
ready!(Pin::new(&mut this.sink).poll_ready(cx))?;
9191
return Poll::Pending
9292
}
9393
}

0 commit comments

Comments
 (0)