diff --git a/deno.json b/deno.json index aa6c4758..e3cd02f0 100644 --- a/deno.json +++ b/deno.json @@ -29,6 +29,7 @@ "hono/middleware": "https://deno.land/x/hono@v3.10.1/middleware.ts", "kysely": "npm:kysely@^0.27.3", "kysely_deno_postgres": "https://deno.land/x/kysely_deno_postgres@v0.4.0/mod.ts", + "nostr-relaypool": "npm:nostr-relaypool2@0.6.34", "nostr-tools": "npm:nostr-tools@^2.5.1", "nostr-wasm": "npm:nostr-wasm@^0.1.0", "zod": "npm:zod@^3.23.4", diff --git a/deno.lock b/deno.lock index 22586540..508e7fb9 100644 --- a/deno.lock +++ b/deno.lock @@ -1504,6 +1504,7 @@ "jsr:@std/streams@^0.223.0", "npm:comlink@^4.4.1", "npm:kysely@^0.27.3", + "npm:nostr-relaypool2@0.6.34", "npm:nostr-tools@^2.5.1", "npm:nostr-wasm@^0.1.0", "npm:zod@^3.23.4" diff --git a/src/deps.ts b/src/deps.ts index 2111f0f6..da98d647 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -1,5 +1,4 @@ import 'https://gitlab.com/soapbox-pub/deno-safe-fetch/-/raw/v1.0.0/load.ts'; -export { RelayPoolWorker } from 'npm:nostr-relaypool2@0.6.34'; export { parseFormData } from 'npm:formdata-helper@^0.3.0'; // @deno-types="npm:@types/lodash@4.14.194" export { default as lodash } from 'https://esm.sh/lodash@4.17.21'; diff --git a/src/pool.ts b/src/pool.ts index 06c251e9..48d5e1fa 100644 --- a/src/pool.ts +++ b/src/pool.ts @@ -1,5 +1,6 @@ +import { RelayPoolWorker } from 'nostr-relaypool'; + import { getActiveRelays } from '@/db/relays.ts'; -import { RelayPoolWorker } from '@/deps.ts'; const activeRelays = await getActiveRelays(); diff --git a/src/storages/pool-store.ts b/src/storages/pool-store.ts index 93ca24e9..a8bd09aa 100644 --- a/src/storages/pool-store.ts +++ b/src/storages/pool-store.ts @@ -1,7 +1,8 @@ import { NostrEvent, NostrFilter, NSet, NStore } from '@nostrify/nostrify'; +import { RelayPoolWorker } from 'nostr-relaypool'; import { matchFilters } from 'nostr-tools'; -import { Debug, type RelayPoolWorker } from '@/deps.ts'; +import { Debug } from '@/deps.ts'; import { normalizeFilters } from '@/filter.ts'; import { purifyEvent } from '@/storages/hydrate.ts'; import { abortError } from '@/utils/abort.ts';