Skip to content

Commit

Permalink
cleanup: dedup by tracking id in the create chunk handler
Browse files Browse the repository at this point in the history
  • Loading branch information
densumesh authored and cdxker committed Jan 8, 2025
1 parent 5531e2c commit 82fe335
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/handlers/chunk_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ pub async fn create_chunk(
.clone()
.into_iter()
.chain(upsert_chunk_metadatas.clone().into_iter())
.dedup_by(|x, y| x.tracking_id == y.tracking_id)
.collect::<Vec<ChunkMetadata>>();

let mut redis_conn = redis_pool
Expand Down

0 comments on commit 82fe335

Please sign in to comment.