mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
fix: AsyncStream should use a zero-capacity stream to ensure we run in lock-step
This commit is contained in:
parent
6cfe5ac811
commit
21717b47a0
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ impl<'a, T> TryAsyncStream<'a, T> {
|
|||
Fut: 'a + Future<Output = Result<(), Error>> + Send,
|
||||
T: 'a + Send,
|
||||
{
|
||||
let (mut sender, receiver) = mpsc::channel(1);
|
||||
let (mut sender, receiver) = mpsc::channel(0);
|
||||
|
||||
let future = f(sender.clone());
|
||||
let future = async move {
|
||||
|
|
Loading…
Reference in a new issue