feat: set publish timeout to 10 seconds
This commit is contained in:
parent
7606c62b63
commit
6d7ecfe2fd
1 changed files with 1 additions and 0 deletions
|
|
@ -150,6 +150,7 @@ class ClientService extends EventTarget {
|
|||
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
||||
const that = this
|
||||
const relay = await this.pool.ensureRelay(url)
|
||||
relay.publishTimeout = 10_000 // 10s
|
||||
return relay
|
||||
.publish(event)
|
||||
.catch((error) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue