Skip to content

Commit

Permalink
badger: remove two broken Next() calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Oct 8, 2024
1 parent 8a3fc41 commit f5de4f6
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 @@ -117,7 +117,6 @@ func (b *BadgerBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (c
if !it.Valid() {
// fmt.Println(" reached end")
exhaust(q)
it.Next()
break
}

Expand All @@ -132,7 +131,6 @@ func (b *BadgerBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (c
if createdAt < since {
// fmt.Println(" reached since", createdAt, "<", since)
exhaust(q)
it.Next()
break
}
}
Expand Down

0 comments on commit f5de4f6

Please sign in to comment.