mirror of
https://github.com/fiatjaf/nak.git
synced 2025-08-31 22:10:47 -04:00
adapt to go-nostr's new methods that take just one filter (and paginator).
This commit is contained in:
8
req.go
8
req.go
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user