sdk: increase sanity threshold of relay lists.

This commit is contained in:
fiatjaf 2025-02-04 10:33:28 -03:00
parent e7432baeba
commit 48ce669a3d

View File

@ -50,7 +50,7 @@ func (sys *System) FetchOutboxRelays(ctx context.Context, pubkey string, n int)
// the relays they intend to receive notifications from.
func (sys *System) FetchInboxRelays(ctx context.Context, pubkey string, n int) []string {
rl := sys.FetchRelayList(ctx, pubkey)
if len(rl.Items) == 0 || len(rl.Items) > 7 {
if len(rl.Items) == 0 || len(rl.Items) > 10 {
return []string{"wss://relay.damus.io", "wss://nos.lol"}
}