Skip to content

Commit

Permalink
feat(ingestion_pipeline): early return if any error encountered (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
timonv authored Jun 14, 2024
1 parent fa74939 commit 1f0cd28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swiftide/src/ingestion/ingestion_pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ impl IngestionPipeline {
futures_util::future::try_join_all(setup_futures).await?;

let mut total_nodes = 0;
while self.stream.next().await.is_some() {
while self.stream.try_next().await?.is_some() {
total_nodes += 1;
}

Expand Down

0 comments on commit 1f0cd28

Please sign in to comment.