mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-23 20:22:06 +02:00
fix (break) sys.FetchWriteRelays() signature.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user