We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4002bdc commit b283b4eCopy full SHA for b283b4e
crates/storage/provider/src/providers/database/provider.rs
@@ -780,7 +780,7 @@ impl<TX: DbTxMut + DbTx> DatabaseProvider<TX> {
780
for (partial_key, indices) in index_updates {
781
let last_shard = self.take_shard::<T>(sharded_key_factory(partial_key, u64::MAX))?;
782
// chunk indices and insert them in shards of N size.
783
- let indices = last_shard.iter().chain(indices.iter());
+ let indices = last_shard.iter().chain(indices.iter()).dedup();
784
let chunks = indices
785
.chunks(sharded_key::NUM_OF_INDICES_IN_SHARD)
786
.into_iter()
0 commit comments