Increase NIP-05 lookup timeout to 2s

This commit is contained in:
Alex Gleason 2023-08-19 14:56:40 -05:00
parent f198779ebe
commit 98b6a4b222
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ interface LookupOpts {
/** Get pubkey from NIP-05. */
async function lookup(value: string, opts: LookupOpts = {}): Promise<string | null> {
const { timeout = 1000 } = opts;
const { timeout = 2000 } = opts;
const match = value.match(NIP05_REGEX);
if (!match) return null;