mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
Use profiles relays set in loadRelaysArchive
Otherwise it fails to fetch the relays
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user