From 51881efde0ac3808aab9999d76a0b3d80be28c3a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 17 Aug 2023 16:48:58 -0500 Subject: [PATCH] Push events from the client through the pipeline --- src/client.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.ts b/src/client.ts index abb5fdce..a99ce8ee 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1,5 +1,6 @@ import { Conf } from '@/config.ts'; import { type Event, type Filter, matchFilters, RelayPool, TTLCache } from '@/deps.ts'; +import * as pipeline from '@/pipeline.ts'; import { Time } from '@/utils.ts'; import type { GetFiltersOpts } from '@/types.ts'; @@ -37,6 +38,7 @@ function getFilters(filters: Filter[], opts: GetFiltersOpts Conf.poolRelays, (event: Event | null) => { if (event && matchFilters(filters, event)) { + pipeline.handleEvent(event); results.push({ id: event.id, kind: event.kind,