Skip to content

Commit

Permalink
badger: no need to sort queries before running them (leftover from de…
Browse files Browse the repository at this point in the history
…bugging).
  • Loading branch information
fiatjaf committed Oct 7, 2024
1 parent 6e79b94 commit 5090106
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions badger/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ func (b BadgerBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (ch
return nil, err
}

slices.SortFunc(queries, func(a, b query) int { return slices.Compare(a.prefix, b.prefix) })

// max number of events we'll return
limit := b.MaxLimit / 4
if filter.Limit > 0 && filter.Limit <= b.MaxLimit {
Expand Down

0 comments on commit 5090106

Please sign in to comment.