lmdb/badger: stop sorting tags in-place when creating indexes. it is not necessary and was messing up things.
This commit is contained in:
@@ -86,7 +86,6 @@ func getIndexKeysForEvent(evt *nostr.Event, idx []byte) [][]byte {
|
||||
}
|
||||
|
||||
// ~ 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