it never ends.

This commit is contained in:
fiatjaf
2025-04-16 02:59:47 -03:00
parent cb0dd45a32
commit 5b8954461f
53 changed files with 396 additions and 673 deletions

View File

@@ -69,8 +69,8 @@ func (b *SliceStore) QueryEvents(filter nostr.Filter) iter.Seq[nostr.Event] {
}
}
func (b *SliceStore) CountEvents(filter nostr.Filter) (int64, error) {
var val int64
func (b *SliceStore) CountEvents(filter nostr.Filter) (uint32, error) {
var val uint32
for _, event := range b.internal {
if filter.Matches(event) {
val++