Increase timeouts

This commit is contained in:
Alex Gleason 2024-07-01 23:05:03 +01:00
parent 3ae6d39ebc
commit ae687bb525
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@ async function renderNotifications(
const store = c.get('store');
const pubkey = await c.get('signer')?.getPublicKey()!;
const { signal } = c.req.raw;
const opts = { signal, limit: params.limit, timeout: 5000 };
const opts = { signal, limit: params.limit, timeout: 10_000 };
const events = await store
.query(filters, opts)

View file

@ -73,7 +73,7 @@ function connectStream(socket: WebSocket) {
const pubsub = await Storages.pubsub();
try {
for (const event of await store.query(filters, { limit: FILTER_LIMIT, timeout: 300 })) {
for (const event of await store.query(filters, { limit: FILTER_LIMIT, timeout: 1000 })) {
send(['EVENT', subId, event]);
}
} catch (e) {