Skip to content

Commit a2c78f2

Browse files
committed
fix: remove limit of 1 active connection
This was put in place during the move to async-std, and limits the number of active connections to 1. Fixes: d445a94 Signed-off-by: Patrick Uiterwijk <[email protected]>
1 parent 6b5d23d commit a2c78f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async fn main() -> anyhow::Result<()> {
131131
.await
132132
.with_context(|| format!("Failed to bind to {}", addr))?
133133
.incoming()
134-
.for_each_concurrent(Some(1), |stream| async {
134+
.for_each_concurrent(None, |stream| async {
135135
if let Err(e) = async {
136136
let stream = stream.context("failed to initialize connection")?;
137137
debug!(

0 commit comments

Comments
 (0)