From 5faf089360f2c05705a78a76fdba9e74a8078467 Mon Sep 17 00:00:00 2001 From: BlowaterNostr Date: Wed, 1 May 2024 05:27:28 +0800 Subject: [PATCH] less log --- resolvers/root.ts | 1 - ws.ts | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/resolvers/root.ts b/resolvers/root.ts index cd0134d..e517053 100644 --- a/resolvers/root.ts +++ b/resolvers/root.ts @@ -50,7 +50,6 @@ export function RootResolver(deps: { policies: Policies(deps.kv), relayInformation: deps.relayInformationStore.resolveRelayInformation, events: async (args: { pubkey: string[]; offset: number; limit: number }) => { - console.log(args.pubkey); const events = await Array.fromAsync(deps.get_events_by_authors(new Set(args.pubkey))); return { count: events.length, diff --git a/ws.ts b/ws.ts index fcb7eab..028d946 100644 --- a/ws.ts +++ b/ws.ts @@ -268,11 +268,10 @@ async function handle_filter( } if (filter.authors) { if (event_candidates.size > 0) { - console.log("event_candidates", event_candidates); + } else { const events = args.get_events_by_authors(new Set(filter.authors)); for await (const event of events) { - console.log(event); event_candidates.set(event.id, event); } } @@ -290,7 +289,6 @@ async function handle_filter( } else if (!filter.authors) { const events = get_events_by_kinds(new Set(filter.kinds)); for await (const event of events) { - console.log(event); event_candidates.set(event.id, event); } }