Skip to content

Commit 7b1c1dd

Browse files
committed
fixup! fixup! Add edge crate
Fix truncation of points below score threshold 😬
1 parent e93e3a6 commit 7b1c1dd

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
@@ -270,7 +270,7 @@ impl Shard {
270270
.find(|(_, point)| !distance.check_threshold(point.score, score_threshold));
271271

272272
if let Some((below_threshold_idx, _)) = below_threshold {
273-
points.truncate(below_threshold_idx + 1);
273+
points.truncate(below_threshold_idx);
274274
}
275275
}
276276

0 commit comments

Comments
 (0)