mixer: stop querying relays
This commit is contained in:
parent
a0ebd80c7e
commit
24cbc50c1b
|
@ -1,6 +1,5 @@
|
||||||
import { type Event, matchFilters } from '@/deps.ts';
|
import { type Event, matchFilters } from '@/deps.ts';
|
||||||
|
|
||||||
import * as client from '@/client.ts';
|
|
||||||
import * as eventsDB from '@/db/events.ts';
|
import * as eventsDB from '@/db/events.ts';
|
||||||
import { dedupeEvents, eventDateComparator } from '@/utils.ts';
|
import { dedupeEvents, eventDateComparator } from '@/utils.ts';
|
||||||
|
|
||||||
|
@ -14,7 +13,6 @@ async function getFilters<K extends number>(
|
||||||
if (!filters.length) return Promise.resolve([]);
|
if (!filters.length) return Promise.resolve([]);
|
||||||
|
|
||||||
const results = await Promise.allSettled([
|
const results = await Promise.allSettled([
|
||||||
client.getFilters(filters.filter((filter) => !filter.local), opts),
|
|
||||||
eventsDB.getFilters(filters, opts),
|
eventsDB.getFilters(filters, opts),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue