From a7697fd86beefaaac0fc4b49978a04aeca48787f Mon Sep 17 00:00:00 2001 From: Daniel McCartney Date: Thu, 18 Jan 2024 05:47:19 -0500 Subject: [PATCH] fix: remove 8s timeout from ipfs requests --- web/src/hooks/useFetchJSONZST.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/web/src/hooks/useFetchJSONZST.js b/web/src/hooks/useFetchJSONZST.js index 2106398..c88a408 100644 --- a/web/src/hooks/useFetchJSONZST.js +++ b/web/src/hooks/useFetchJSONZST.js @@ -7,10 +7,7 @@ export async function fetchJSONZST(url) { return fetch(url).then((res) => res.json()); } let initingZst = zst.init(); - let res = await fetch(url, { - // IPFS gateways are slow to timeout on their own. - signal: AbortSignal.timeout(8000), // ms - }); + let res = await fetch(url); if (!res.ok) { throw new Error(`failure fetching JSON ZST from ${url}`); }