*add queryTimeout
This commit is contained in:
parent
c894082b9d
commit
c674e18229
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue