Remove relays duplicates merging kind 3 and kind 10002 lists

This commit is contained in:
Daniele Tonon
2023-07-16 00:01:26 +02:00
parent bf3c85395f
commit 0e77a8f108

View File

@@ -176,5 +176,6 @@ func relaysForPubkey(ctx context.Context, pubkey string, extraRelays ...string)
cache.SetJSONWithTTL("io:"+pubkey, pubkeyRelays, time.Hour*24*7)
}
}
pubkeyRelays = unique(pubkeyRelays)
return pubkeyRelays
}