mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 00:28:51 +00:00
configurable list and get timeout on relay.
This commit is contained in:
5
pool.ts
5
pool.ts
@@ -29,7 +29,10 @@ export class SimplePool {
|
||||
const existing = this._conn[nm]
|
||||
if (existing) return existing
|
||||
|
||||
const relay = relayInit(nm)
|
||||
const relay = relayInit(nm, {
|
||||
getTimeout: this.getTimeout * 0.9,
|
||||
listTimeout: this.getTimeout * 0.9
|
||||
})
|
||||
this._conn[nm] = relay
|
||||
|
||||
await relay.connect()
|
||||
|
||||
Reference in New Issue
Block a user