Skip to content

Commit d2ceac4

Browse files
committed
sdk: FetchWriteRelays() shouldn't have a hardcoded fallback, it's better to fail.
1 parent cecc71c commit d2ceac4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sdk/outbox.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ func (sys *System) FetchInboxRelays(ctx context.Context, pubkey string, n int) [
7171
// from where to read notes authored by other users.
7272
func (sys *System) FetchWriteRelays(ctx context.Context, pubkey string, n int) []string {
7373
rl := sys.FetchRelayList(ctx, pubkey)
74-
if len(rl.Items) == 0 || len(rl.Items) > 7 {
75-
return []string{"wss://relay.damus.io", "wss://nos.lol"}
76-
}
7774

7875
relays := make([]string, 0, n)
7976
for _, r := range rl.Items {

0 commit comments

Comments
 (0)