Skip to content

Commit

Permalink
terminate if filter is full
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepish committed Jun 16, 2024
1 parent 902d540 commit e8efcb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filter_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ fn work_build(
filter: &mut qfilter::Filter,
) {
let mut changed = false;
loop {
'mainloop: loop {
let mut added: u32 = 0;
let parsed = match in_rx.blocking_recv() {
Some(Some(x)) => x,
Expand All @@ -103,7 +103,7 @@ fn work_build(
Ok(false) => {}
Err(_) => {
error!("unable to add more items to filter");
break;
break 'mainloop;
}
}
}
Expand Down

0 comments on commit e8efcb0

Please sign in to comment.