mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Add a timeout on pool.query
This commit is contained in:
parent
773cee8b92
commit
815b903e28
1 changed files with 1 additions and 1 deletions
|
|
@ -354,7 +354,7 @@ export class DittoRelayStore implements NRelay {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ids.size) {
|
if (ids.size) {
|
||||||
for (const event of await pool.query([{ ids: [...ids] }])) {
|
for (const event of await pool.query([{ ids: [...ids] }], { signal: AbortSignal.timeout(1000) })) {
|
||||||
await this.event(event).catch(() => {});
|
await this.event(event).catch(() => {});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue