From 0e77a8f108df6b1f75d2db5f1e2e1c5fb7fce1ff Mon Sep 17 00:00:00 2001 From: Daniele Tonon Date: Sun, 16 Jul 2023 00:01:26 +0200 Subject: [PATCH] Remove relays duplicates merging kind 3 and kind 10002 lists --- nostr.go | 1 + 1 file changed, 1 insertion(+) diff --git a/nostr.go b/nostr.go index 82c1362..82d977f 100644 --- a/nostr.go +++ b/nostr.go @@ -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 }