diff --git a/main.ts b/main.ts index 2df0e0e..5c253f4 100644 --- a/main.ts +++ b/main.ts @@ -54,7 +54,7 @@ const relay = new NRelay1(relay_str); console.log("\nAs a sanity check, here's your last message (if any):"); -for await (const msg of relay.req([{ kinds: [1], limit: 960, authors: [pubkey_hex] }])) { +for await (const msg of relay.req([{ kinds: [1], limit: 1, authors: [pubkey_hex] }])) { if (msg[0] === 'EVENT') console.log(msg[2].content); if (msg[0] === 'EOSE') break; }