fix: manage pending relay connection requests #159
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user