From b7db88cf0957e70f72d7c2e2bcaa64f7381ae2bd Mon Sep 17 00:00:00 2001 From: Daniele Tonon Date: Wed, 3 Jan 2024 12:25:16 +0100 Subject: [PATCH] Use profiles relays set in loadRelaysArchive Otherwise it fails to fetch the relays --- routines.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routines.go b/routines.go index e6b3f2b..0345335 100644 --- a/routines.go +++ b/routines.go @@ -11,6 +11,7 @@ import ( func updateArchives(ctx context.Context) { // do this so we don't run this every time we restart it locally + time.Sleep(10 * time.Minute) for { @@ -88,7 +89,7 @@ func loadRelaysArchive(ctx context.Context) { for _, pubkey := range trustedPubKeys { ctx, cancel := context.WithTimeout(ctx, time.Second*4) - pubkeyContacts := relaysForPubkey(ctx, pubkey) + pubkeyContacts := relaysForPubkey(ctx, pubkey, profiles...) relaysArchive = append(relaysArchive, pubkeyContacts...) cancel() }