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