fix: manage pending relay connection requests #159

Merged
eugene merged 6 commits from reduce-relay-connection-attempts into staging 2024-08-21 08:06:39 +00:00
Showing only changes of commit 2c18c51029 - Show all commits

View File

@ -282,10 +282,9 @@ export class RelayController {
} }
// connect to all specified relays // connect to all specified relays
const relayPromises = relayUrls.map((relayUrl) => { const relayPromises = relayUrls.map((relayUrl) =>
console.log('being called from publish events') this.connectRelay(relayUrl)
return this.connectRelay(relayUrl) )
})
// Use Promise.allSettled to wait for all promises to settle // Use Promise.allSettled to wait for all promises to settle
const results = await Promise.allSettled(relayPromises) const results = await Promise.allSettled(relayPromises)