From 98b6a4b2225a26e069b557e09a2bc7110741eca3 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 19 Aug 2023 14:56:40 -0500 Subject: [PATCH] Increase NIP-05 lookup timeout to 2s --- src/nip05.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nip05.ts b/src/nip05.ts index 1ddd136..2205ded 100644 --- a/src/nip05.ts +++ b/src/nip05.ts @@ -11,7 +11,7 @@ interface LookupOpts { /** Get pubkey from NIP-05. */ async function lookup(value: string, opts: LookupOpts = {}): Promise { - const { timeout = 1000 } = opts; + const { timeout = 2000 } = opts; const match = value.match(NIP05_REGEX); if (!match) return null;