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