lmdb/badger: stop sorting tags in-place when creating indexes. it is not necessary and was messing up things.
This commit is contained in:
@@ -79,7 +79,6 @@ func (b *LMDBBackend) getIndexKeysForEvent(evt *nostr.Event) []key {
|
||||
}
|
||||
|
||||
// ~ by tagvalue+date
|
||||
slices.SortFunc(evt.Tags, eventstore.TagSorter)
|
||||
for i, tag := range evt.Tags {
|
||||
if len(tag) < 2 || len(tag[0]) != 1 || len(tag[1]) == 0 || len(tag[1]) > 100 {
|
||||
// not indexable
|
||||
|
||||
Reference in New Issue
Block a user