mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2026-08-09 07:44:54 +00:00
fix ensureRelay
This commit is contained in:
committed by
fiatjaf_
parent
a9acdada19
commit
ef12a451be
@@ -28,8 +28,8 @@ export class SimplePool {
|
||||
if (params?.connectionTimeout) relay.connectionTimeout = params.connectionTimeout
|
||||
if (this.trustedRelayURLs.has(relay.url)) relay.trusted = true
|
||||
this.relays.set(url, relay)
|
||||
await relay.connect()
|
||||
}
|
||||
await relay.connect()
|
||||
|
||||
return relay
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user