mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 14:24:27 +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) {
|
func updateArchives(ctx context.Context) {
|
||||||
// do this so we don't run this every time we restart it locally
|
// do this so we don't run this every time we restart it locally
|
||||||
|
|
||||||
time.Sleep(10 * time.Minute)
|
time.Sleep(10 * time.Minute)
|
||||||
|
|
||||||
for {
|
for {
|
||||||
@@ -88,7 +89,7 @@ func loadRelaysArchive(ctx context.Context) {
|
|||||||
|
|
||||||
for _, pubkey := range trustedPubKeys {
|
for _, pubkey := range trustedPubKeys {
|
||||||
ctx, cancel := context.WithTimeout(ctx, time.Second*4)
|
ctx, cancel := context.WithTimeout(ctx, time.Second*4)
|
||||||
pubkeyContacts := relaysForPubkey(ctx, pubkey)
|
pubkeyContacts := relaysForPubkey(ctx, pubkey, profiles...)
|
||||||
relaysArchive = append(relaysArchive, pubkeyContacts...)
|
relaysArchive = append(relaysArchive, pubkeyContacts...)
|
||||||
cancel()
|
cancel()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user