*add queryTimeout

This commit is contained in:
Derrick Hammer 2022-08-31 18:34:20 -04:00
parent c894082b9d
commit c674e18229
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ async function fetchFromRelays(
hash, hash,
path, path,
}, },
{ relayTimeout: 30 } { queryTimeout: 30, relayTimeout: 30 }
); );
} else { } else {
query = network.simpleQuery( query = network.simpleQuery(
@ -170,7 +170,7 @@ async function fetchFromRelays(
hash, hash,
path, path,
}, },
{ relayTimeout: 30 } { queryTimeout: 30, relayTimeout: 30 }
); );
} }
let resp = await query.result; let resp = await query.result;