Skip to content

Commit

Permalink
early exit
Browse files Browse the repository at this point in the history
  • Loading branch information
cevian committed Dec 5, 2023
1 parent 8726a10 commit 046c23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timescale_vector/src/access_method/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ pub trait Graph {
neighbors.len(),
min
);
if min > visit_n_closest {
if lsr.max_history_size.is_none() && min > visit_n_closest {
//we've visited all the neighbors we need to
break;
}
Expand Down

0 comments on commit 046c23c

Please sign in to comment.