Don't log nip05 cache

This commit is contained in:
Alex Gleason 2023-05-07 16:59:36 -05:00
parent 1271e36f7e
commit 8d021865c6
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 4 deletions

View File

@ -43,10 +43,7 @@ const nostrJsonSchema = z.object({
*/
function lookupNip05Cached(value: string): Promise<string | null> {
const cached = nip05Cache.get(value);
if (cached !== undefined) {
console.log(`Using cached NIP-05 for ${value}`);
return cached;
}
if (cached !== undefined) return cached;
console.log(`Looking up NIP-05 for ${value}`);
const result = lookup(value);