Catch pool.query

This commit is contained in:
Alex Gleason 2025-03-04 23:09:20 -06:00
parent 815b903e28
commit b5858dd54c
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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(() => {});
}
}