Skip to content

Commit

Permalink
Flattening streams can be unlimited as the cost is low
Browse files Browse the repository at this point in the history
  • Loading branch information
timonv committed Sep 11, 2024
1 parent e461129 commit da04e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swiftide-indexing/src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ impl Pipeline {
})
.err_into::<anyhow::Error>()
.try_buffer_unordered(concurrency)
.try_flatten_unordered(concurrency)
.try_flatten_unordered(None)
.boxed()
.into();

Expand Down Expand Up @@ -316,7 +316,7 @@ impl Pipeline {
})
.err_into::<anyhow::Error>()
.try_buffer_unordered(self.concurrency)
.try_flatten_unordered(self.concurrency)
.try_flatten_unordered(None)
.boxed().into();
} else {
self.stream = self
Expand Down

0 comments on commit da04e4a

Please sign in to comment.