Skip to content

Commit 7f715d5

Browse files
committed
Ensure minimum channel size
1 parent d3df544 commit 7f715d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cosmos/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ async fn run_query<Request: GrpcRequest>(
512512

513513
// Prepare for parallel execution
514514
let mut set = JoinSet::new();
515-
let (tx, rx) = tokio::sync::mpsc::channel(nodes.len());
515+
let (tx, rx) = tokio::sync::mpsc::channel(nodes.len().max(4));
516516

517517
for (node_idx, node) in nodes.into_iter().enumerate() {
518518
// Cloning for passing into the async move

0 commit comments

Comments
 (0)