Skip to content

Commit 20a6909

Browse files
committed
bugfix(clone-qdrant-from-offset): stop early if there are no points to upsert
1 parent f80c3e3 commit 20a6909

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

server/src/bin/clone-qdrant-from-offset.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ async fn main() -> Result<(), ()> {
276276
})
277277
.collect::<Vec<PointStruct>>();
278278

279+
if point_structs_to_upsert.is_empty() {
280+
continue;
281+
}
279282
log::info!(
280283
"Upserting {} points into the new Qdrant collection starting at: {}",
281284
point_structs_to_upsert.len(),

0 commit comments

Comments
 (0)