Skip to content

Commit e93e3a6

Browse files
committed
fixup! Add edge crate
Fix score threshold check in search 😅
1 parent 4e285fa commit e93e3a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/edge/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ impl Shard {
267267
let below_threshold = points
268268
.iter()
269269
.enumerate()
270-
.find(|(_, point)| distance.check_threshold(point.score, score_threshold));
270+
.find(|(_, point)| !distance.check_threshold(point.score, score_threshold));
271271

272272
if let Some((below_threshold_idx, _)) = below_threshold {
273273
points.truncate(below_threshold_idx + 1);

0 commit comments

Comments
 (0)