mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Increase timeouts
This commit is contained in:
parent
3ae6d39ebc
commit
ae687bb525
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue