mirror of
https://github.com/dergigi/boris.git
synced 2026-02-23 07:54:59 +01:00
debug: add timeout to relay list query and temporarily add user's relays to hardcoded set to test relay list loading
This commit is contained in:
@@ -16,6 +16,14 @@ export const RELAYS = [
|
||||
'wss://nostr-pub.wellorder.net',
|
||||
'wss://purplepag.es',
|
||||
'wss://relay.primal.net',
|
||||
'wss://proxy.nostr-relay.app/5d0d38afc49c4b84ca0da951a336affa18438efed302aeedfa92eb8b0d3fcb87'
|
||||
'wss://proxy.nostr-relay.app/5d0d38afc49c4b84ca0da951a336affa18438efed302aeedfa92eb8b0d3fcb87',
|
||||
// Temporary: Add some relays from user's relay list to test
|
||||
'wss://filter.nostr.wine',
|
||||
'wss://nostr.wine',
|
||||
'wss://nostr.oxtr.dev',
|
||||
'wss://atlas.nostr.land',
|
||||
'wss://eden.nostr.land',
|
||||
'wss://puravida.nostr.land',
|
||||
'wss://premium.primal.net'
|
||||
]
|
||||
|
||||
|
||||
@@ -22,6 +22,9 @@ export async function loadUserRelayList(
|
||||
kinds: [10002],
|
||||
authors: [pubkey]
|
||||
})
|
||||
|
||||
// Add a small delay to ensure queries have time to complete
|
||||
await new Promise(resolve => setTimeout(resolve, 1000))
|
||||
|
||||
console.log('[relayListService] Found', events.length, 'kind 10002 events')
|
||||
if (events.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user