Skip to content

Commit

Permalink
Break from the outer loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMathWalker committed Oct 21, 2023
1 parent dcda8a4 commit 2537769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/polars-pipe/src/pipeline/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ fn run_pipeline_no_finalize_iterative(
operator_end: usize,
sink_finished: &mut bool,
) -> PolarsResult<(u32, Box<dyn Sink>)> {
for src in &mut std::mem::take(&mut pipeline.sources) {
'outer: for src in &mut std::mem::take(&mut pipeline.sources) {
let mut next_batches = src.get_batches(ec)?;

while let SourceResult::GotMoreData(chunks) = next_batches {
Expand All @@ -553,7 +553,7 @@ fn run_pipeline_no_finalize_iterative(

if let Some(SinkResult::Finished) = sink_result {
*sink_finished = true;
break;
break 'outer;
}
}
}
Expand Down

0 comments on commit 2537769

Please sign in to comment.