mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-18 11:44:20 +01:00
client: fix wrong import of allRelays
This commit is contained in:
@@ -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(() => {});
|
||||
|
||||
Reference in New Issue
Block a user