mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Increase query timeout of feeds
This commit is contained in:
parent
fd769c125c
commit
c7092f5d2d
1 changed files with 2 additions and 1 deletions
|
|
@ -60,9 +60,10 @@ 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 events = await store
|
||||
.query(filters, { signal })
|
||||
.query(filters, opts)
|
||||
.then((events) => hydrateEvents({ events, store, signal }));
|
||||
|
||||
if (!events.length) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue