forked from ppfun/pixelplanet
increase fetch timeout
This commit is contained in:
parent
5e1bf23d17
commit
6fe2d14f65
|
@ -29,7 +29,7 @@ export const shardOrigin = shardHost
|
|||
* defaults to 8s
|
||||
*/
|
||||
async function fetchWithTimeout(url, options = {}) {
|
||||
const { timeout = 10000 } = options;
|
||||
const { timeout = 30000 } = options;
|
||||
|
||||
const controller = new AbortController();
|
||||
const id = setTimeout(() => controller.abort(), timeout);
|
||||
|
|
Loading…
Reference in New Issue
Block a user