mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-04-19 05:05:46 +00:00
fix: AsyncStream should use a zero-capacity stream to ensure we run in lock-step
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user