mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Increase NIP-05 lookup timeout to 2s
This commit is contained in:
parent
f198779ebe
commit
98b6a4b222
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue