client: fix wrong import of allRelays

This commit is contained in:
Alex Gleason 2023-12-22 10:23:48 -06:00
parent 5ea9cc399f
commit 58b12ae462
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import { type Event, type Filter, matchFilters } from '@/deps.ts';
import * as pipeline from '@/pipeline.ts';
import { allRelays, pool } from '@/pool.ts';
import { activeRelays, pool } from '@/pool.ts';
import type { GetFiltersOpts } from '@/filter.ts';
@ -13,7 +13,7 @@ function getFilters<K extends number>(filters: Filter<K>[], opts: GetFiltersOpts
const unsub = pool.subscribe(
filters,
allRelays,
activeRelays,
(event: Event | null) => {
if (event && matchFilters(filters, event)) {
pipeline.handleEvent(event).catch(() => {});