Increase NIP-05 lookup timeout to 2s
This commit is contained in:
parent
f198779ebe
commit
98b6a4b222
|
@ -11,7 +11,7 @@ interface LookupOpts {
|
||||||
|
|
||||||
/** Get pubkey from NIP-05. */
|
/** Get pubkey from NIP-05. */
|
||||||
async function lookup(value: string, opts: LookupOpts = {}): Promise<string | null> {
|
async function lookup(value: string, opts: LookupOpts = {}): Promise<string | null> {
|
||||||
const { timeout = 1000 } = opts;
|
const { timeout = 2000 } = opts;
|
||||||
|
|
||||||
const match = value.match(NIP05_REGEX);
|
const match = value.match(NIP05_REGEX);
|
||||||
if (!match) return null;
|
if (!match) return null;
|
||||||
|
|
Loading…
Reference in New Issue