From bae5e91110f467dc15a03003d8a8506aafc5a75a Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 11 Aug 2024 16:12:27 +0200 Subject: [PATCH] remove debug logs --- src/nostr/notes.ts | 4 ++-- src/utils.ts | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/nostr/notes.ts b/src/nostr/notes.ts index 30c4044..56879c1 100644 --- a/src/nostr/notes.ts +++ b/src/nostr/notes.ts @@ -66,13 +66,13 @@ export const createNote = async ({ ); } catch (e) { alert( - `Your post was not accepted by our relay pool. Please choose different relays or try again later.` + `Your post was not accepted by your configured relay pool. Please choose different relays or try again later.` ); console.error(e); } setTimeout(async () => { - console.log(`Verifying that event ${signedEvent.id} got validated.`); + console.log(`Verifying that event ${signedEvent.id} got validated…`); const allKind30398Events = await getKind30398Events(); const publicKey = getPublicKey(key); const events = await allKind30398Events.query([ diff --git a/src/utils.ts b/src/utils.ts index 615bb20..ecb6538 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -44,14 +44,11 @@ export const prompt = async ({ }; export function promiseWithTimeout(promise: Promise, timeout: number) { - console.log("stargin with timeout"); return new Promise((resolve, reject) => { setTimeout(async () => { reject(`Timed out after ${timeout}ms.`); }, timeout); - console.log("timeout started"); promise.then((r) => { - console.log("promise resolved"); resolve(r); }); });