We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
edge
1 parent 4e285fa commit e93e3a6Copy full SHA for e93e3a6
1 file changed
lib/edge/src/lib.rs
@@ -267,7 +267,7 @@ impl Shard {
267
let below_threshold = points
268
.iter()
269
.enumerate()
270
- .find(|(_, point)| distance.check_threshold(point.score, score_threshold));
+ .find(|(_, point)| !distance.check_threshold(point.score, score_threshold));
271
272
if let Some((below_threshold_idx, _)) = below_threshold {
273
points.truncate(below_threshold_idx + 1);
0 commit comments