Skip to content

Commit

Permalink
limit concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
Weakky committed Jul 24, 2024
1 parent aa4eb82 commit e6d572f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub use config::*;
pub use connector_tag::*;
pub use datamodel_rendering::*;
pub use error::*;
use futures_util::StreamExt;
pub use logging::*;
pub use query_core;
pub use query_result::*;
Expand Down Expand Up @@ -168,7 +169,6 @@ fn run_relation_link_test_impl(
let (log_capture, log_tx) = TestLogCapture::new();

futs.push(async move {
println!("Used datamodel:\n {}", datamodel.yellow());
let override_local_max_bind_values = None;
let runner = Runner::load(datamodel.clone(), &[], version, connector_tag, override_local_max_bind_values, metrics, log_capture)
.await
Expand All @@ -188,7 +188,7 @@ fn run_relation_link_test_impl(
}

run_with_tokio(async move {
futures_util::future::join_all(futs).await
futures_util::stream::iter(futs).buffer_unordered(30).collect::<Vec<_>>().await;
});
}
}
Expand Down

0 comments on commit e6d572f

Please sign in to comment.