diff --git a/backend/mttnet/syncing.go b/backend/mttnet/syncing.go index bca1865e..8ff0945f 100644 --- a/backend/mttnet/syncing.go +++ b/backend/mttnet/syncing.go @@ -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 diff --git a/backend/syncing/rbsr/storage.go b/backend/syncing/rbsr/storage.go index 80b26cb2..e5e1bb78 100644 --- a/backend/syncing/rbsr/storage.go +++ b/backend/syncing/rbsr/storage.go @@ -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)