mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-18 22:14:23 +01:00
Increase timeouts
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user