update go-nostr keyer interface and make req --auth work again.

This commit is contained in:
fiatjaf
2024-09-22 19:21:41 -03:00
parent 43fe41df5d
commit d7c0ff2bb7
7 changed files with 22 additions and 14 deletions

View File

@@ -12,8 +12,8 @@ import (
func paginateWithParams(
interval time.Duration,
globalLimit uint64,
) func(ctx context.Context, urls []string, filters nostr.Filters) chan nostr.IncomingEvent {
return func(ctx context.Context, urls []string, filters nostr.Filters) chan nostr.IncomingEvent {
) func(ctx context.Context, urls []string, filters nostr.Filters) chan nostr.RelayEvent {
return func(ctx context.Context, urls []string, filters nostr.Filters) chan nostr.RelayEvent {
// filters will always be just one
filter := filters[0]
@@ -29,7 +29,7 @@ func paginateWithParams(
}
}
var globalCount uint64 = 0
globalCh := make(chan nostr.IncomingEvent)
globalCh := make(chan nostr.RelayEvent)
repeatedCache := make([]string, 0, 300)
nextRepeatedCache := make([]string, 0, 300)