mixer: stop querying relays

This commit is contained in:
Alex Gleason 2023-10-09 13:15:02 -05:00
parent a0ebd80c7e
commit 24cbc50c1b
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 0 additions and 2 deletions

View File

@ -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),
]); ]);