configurable list and get timeout on relay.

This commit is contained in:
fiatjaf
2023-02-26 21:23:09 -03:00
parent c362212778
commit 9d345a8f01
3 changed files with 16 additions and 5 deletions

View File

@@ -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()