Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
shuesken committed Aug 11, 2024
1 parent 3fb1586 commit bae5e91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/nostr/notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down
3 changes: 0 additions & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,11 @@ export const prompt = async ({
};

export function promiseWithTimeout(promise: Promise<any>, 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);
});
});
Expand Down

0 comments on commit bae5e91

Please sign in to comment.