From 198dc6ebdafd33b7fa2752c9d221c1c0afdffce1 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 4 Apr 2025 23:40:27 -0300 Subject: [PATCH] fix (break) sys.FetchWriteRelays() signature. --- sdk/outbox.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/outbox.go b/sdk/outbox.go index 90e9b7c..2008bfb 100644 --- a/sdk/outbox.go +++ b/sdk/outbox.go @@ -69,10 +69,10 @@ func (sys *System) FetchInboxRelays(ctx context.Context, pubkey string, n int) [ // // Use FetchWriteRelays when deciding where to publish on behalf of a user, but FetchOutboxRelays when deciding // from where to read notes authored by other users. -func (sys *System) FetchWriteRelays(ctx context.Context, pubkey string, n int) []string { +func (sys *System) FetchWriteRelays(ctx context.Context, pubkey string) []string { rl := sys.FetchRelayList(ctx, pubkey) - relays := make([]string, 0, n) + relays := make([]string, 0, 7) for _, r := range rl.Items { if r.Outbox { relays = append(relays, r.URL)