mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Increase timeout for account statuses endpoint and feed endpoints
This commit is contained in:
parent
c7092f5d2d
commit
3e7bab538a
3 changed files with 5 additions and 3 deletions
|
|
@ -209,7 +209,9 @@ const accountStatusesController: AppController = async (c) => {
|
|||
filter['#t'] = [tagged];
|
||||
}
|
||||
|
||||
const events = await store.query([filter], { signal })
|
||||
const opts = { signal, limit, timeout: 10_000 };
|
||||
|
||||
const events = await store.query([filter], opts)
|
||||
.then((events) => hydrateEvents({ events, store, signal }))
|
||||
.then((events) => {
|
||||
if (exclude_replies) {
|
||||
|
|
|
|||
|
|
@ -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: 10_000 };
|
||||
const opts = { signal, limit: params.limit, timeout: 15_000 };
|
||||
|
||||
const events = await store
|
||||
.query(filters, opts)
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ const suggestedTimelineController: AppController = async (c) => {
|
|||
async function renderStatuses(c: AppContext, filters: NostrFilter[]) {
|
||||
const { signal } = c.req.raw;
|
||||
const store = c.get('store');
|
||||
const opts = { signal, timeout: 5000 };
|
||||
const opts = { signal, timeout: 10_000 };
|
||||
|
||||
const events = await store
|
||||
.query(filters, opts)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue