Skip to content

Commit db224df

Browse files
committed
fixup! Add edge crate
1 parent 0f02b26 commit db224df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/edge/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl Shard {
197197
} = search;
198198

199199
let vector_name = query.get_vector_name().to_string();
200-
let query_vector = query.into();
200+
let query_vector = QueryVector::from(query);
201201
let with_payload = WithPayload::from(with_payload.unwrap_or_default());
202202
let with_vector = with_vector.unwrap_or_default();
203203

@@ -264,7 +264,7 @@ impl Shard {
264264
points.retain(|point| distance.check_threshold(point.score, score_threshold));
265265
}
266266

267-
let _ = points.drain(..points.len().saturating_sub(offset));
267+
let _ = points.drain(..offset);
268268

269269
Ok(points)
270270
}

0 commit comments

Comments
 (0)