We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3df544 commit 7f715d5Copy full SHA for 7f715d5
packages/cosmos/src/client.rs
@@ -512,7 +512,7 @@ async fn run_query<Request: GrpcRequest>(
512
513
// Prepare for parallel execution
514
let mut set = JoinSet::new();
515
- let (tx, rx) = tokio::sync::mpsc::channel(nodes.len());
+ let (tx, rx) = tokio::sync::mpsc::channel(nodes.len().max(4));
516
517
for (node_idx, node) in nodes.into_iter().enumerate() {
518
// Cloning for passing into the async move
0 commit comments