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