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

2
mcp.go
View File

@@ -221,7 +221,7 @@ var mcpServer = &cli.Command{
filter.Authors = []string{pubkey}
}
events := sys.Pool.SubManyEose(ctx, []string{relay}, nostr.Filters{filter})
events := sys.Pool.FetchMany(ctx, []string{relay}, filter)
result := strings.Builder{}
for ie := range events {