From aaae6eb75a0dbc7c3b1477fc6d148c562428362d Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 30 Aug 2021 11:06:44 +0200 Subject: [PATCH] increase timeouts --- apps/remix-ide/src/app/files/dgitProvider.js | 2 +- apps/remix-ide/src/remixEngine.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/files/dgitProvider.js b/apps/remix-ide/src/app/files/dgitProvider.js index 7ebe2f4236..06b3aefc31 100644 --- a/apps/remix-ide/src/app/files/dgitProvider.js +++ b/apps/remix-ide/src/app/files/dgitProvider.js @@ -298,7 +298,7 @@ class DGitProvider extends Plugin { const ipfs = IpfsHttpClient(config) let result = false try { - const data = ipfs.get(cid, { timeout: 10000 }) + const data = ipfs.get(cid, { timeout: 60000 }) for await (const file of data) { if (file.path) result = true file.path = file.path.replace(cid, '') diff --git a/apps/remix-ide/src/remixEngine.js b/apps/remix-ide/src/remixEngine.js index 2836d974b2..7ca2dd0845 100644 --- a/apps/remix-ide/src/remixEngine.js +++ b/apps/remix-ide/src/remixEngine.js @@ -10,6 +10,7 @@ export class RemixEngine extends Engine { setPluginOption ({ name, kind }) { if (kind === 'provider') return { queueTimeout: 60000 * 2 } if (name === 'LearnEth') return { queueTimeout: 60000 } + if (name === 'dGitProvider') return { queueTimeout: 60000 * 4 } if (name === 'slither') return { queueTimeout: 60000 * 4 } // Requires when a solc version is installed return { queueTimeout: 10000 } }