Switch to my fork of nostr-relaypool
This commit is contained in:
parent
e9d29075eb
commit
676bd04229
|
@ -9,7 +9,7 @@ export {
|
||||||
} from 'https://deno.land/x/hono@v3.10.1/mod.ts';
|
} from 'https://deno.land/x/hono@v3.10.1/mod.ts';
|
||||||
export { cors, logger, serveStatic } from 'https://deno.land/x/hono@v3.10.1/middleware.ts';
|
export { cors, logger, serveStatic } from 'https://deno.land/x/hono@v3.10.1/middleware.ts';
|
||||||
export { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts';
|
export { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts';
|
||||||
export { RelayPoolWorker } from 'https://dev.jspm.io/nostr-relaypool@0.6.30';
|
export { RelayPoolWorker } from 'npm:nostr-relaypool2@0.6.34';
|
||||||
export {
|
export {
|
||||||
type EventTemplate,
|
type EventTemplate,
|
||||||
finishEvent,
|
finishEvent,
|
||||||
|
|
|
@ -5,7 +5,9 @@ const activeRelays = await getActiveRelays();
|
||||||
|
|
||||||
console.log(`pool: connecting to ${activeRelays.length} relays.`);
|
console.log(`pool: connecting to ${activeRelays.length} relays.`);
|
||||||
|
|
||||||
const worker = new Worker('https://unpkg.com/nostr-relaypool@0.6.30/lib/nostr-relaypool.worker.js', { type: 'module' });
|
const worker = new Worker('https://unpkg.com/nostr-relaypool2@0.6.34/lib/nostr-relaypool.worker.js', {
|
||||||
|
type: 'module',
|
||||||
|
});
|
||||||
|
|
||||||
// @ts-ignore Wrong types.
|
// @ts-ignore Wrong types.
|
||||||
const pool = new RelayPoolWorker(worker, activeRelays, {
|
const pool = new RelayPoolWorker(worker, activeRelays, {
|
||||||
|
|
Loading…
Reference in New Issue