lmdb/badger: stop sorting tags in-place when creating indexes. it is not necessary and was messing up things.

This commit is contained in:
fiatjaf
2024-01-18 17:55:08 -03:00
parent 35322df272
commit f5d23a3b51
3 changed files with 0 additions and 17 deletions

View File

@@ -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