mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-28 10:44:27 +01:00
Increase NIP-05 lookup timeout to 2s
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user