wait, Querier can just return an iter like eventstore, it's ok.

This commit is contained in:
fiatjaf
2025-04-16 03:06:27 -03:00
parent 5b8954461f
commit f7884cea4f
4 changed files with 17 additions and 49 deletions

View File

@@ -2,6 +2,7 @@ package nostr
import (
"context"
"iter"
)
type Publisher interface {
@@ -9,7 +10,7 @@ type Publisher interface {
}
type Querier interface {
QueryEvents(context.Context, Filter) (chan Event, error)
QueryEvents(Filter) iter.Seq[Event]
}
type QuerierPublisher interface {