Skip to content

Commit

Permalink
fix(daemon): not generating duplicates when reconciling
Browse files Browse the repository at this point in the history
  • Loading branch information
juligasa committed Sep 11, 2024
1 parent ea83c6f commit ea9b135
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/mttnet/syncing.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ WHERE blobs.size >= 0 AND (res.iri LIKE `

// QListEmbeddedBlobsStr gets embedded blobs related to multiple eids
const QListEmbeddedBlobsStr = `
SELECT
SELECT DISTINCT
blobs.codec,
blobs.multihash,
blobs.insert_time
Expand Down
2 changes: 1 addition & 1 deletion backend/syncing/rbsr/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (v *sliceStore) Insert(createdAt int64, id []byte) error {
item := NewItem(createdAt, id)
for _, it := range v.items {
if it.Cmp(item) == 0 {
return errors.New("Item already exists")
return nil
}
}
v.items = append(v.items, item)
Expand Down

0 comments on commit ea9b135

Please sign in to comment.