adapt to go-nostr's new methods that take just one filter (and paginator).

This commit is contained in:
fiatjaf
2025-02-13 23:09:56 -03:00
parent 95bed5d5a8
commit 17920d8aef
6 changed files with 31 additions and 90 deletions

8
req.go
View File

@@ -143,14 +143,14 @@ example:
}
}
} else {
fn := sys.Pool.SubManyEose
fn := sys.Pool.FetchMany
if c.Bool("paginate") {
fn = paginateWithParams(c.Duration("paginate-interval"), c.Uint("paginate-global-limit"))
fn = sys.Pool.PaginatorWithInterval(c.Duration("paginate-interval"))
} else if c.Bool("stream") {
fn = sys.Pool.SubMany
fn = sys.Pool.SubscribeMany
}
for ie := range fn(ctx, relayUrls, nostr.Filters{filter}) {
for ie := range fn(ctx, relayUrls, filter) {
stdout(ie.Event)
}
}