Skip to content

Commit d3091f2

Browse files
committed
Reduce channel capacities
1000 is still enough, and it allows deadlocks to show up in the test suite if we've gotten the logic wrong.
1 parent ca84423 commit d3091f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rust/src/graph/builder/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ pub fn build_graph(
4747

4848
// Create channels for communication
4949
// This way we can start parsing moduels while we're still discovering them.
50-
let (found_module_sender, found_module_receiver) = channel::bounded(10000);
51-
let (parsed_module_sender, parser_module_receiver) = channel::bounded(10000);
50+
let (found_module_sender, found_module_receiver) = channel::bounded(1000);
51+
let (parsed_module_sender, parser_module_receiver) = channel::bounded(1000);
5252
let (error_sender, error_receiver) = channel::bounded(1);
5353

5454
let mut thread_handles = Vec::new();

0 commit comments

Comments
 (0)