increase timeouts

pull/1527/head
filip mertens 3 years ago committed by Andrew Miracle
parent 47a6a8a341
commit b41ca82ced
  1. 2
      apps/remix-ide/src/app/files/dgitProvider.js
  2. 1
      apps/remix-ide/src/remixEngine.js

@ -298,7 +298,7 @@ class DGitProvider extends Plugin {
const ipfs = IpfsHttpClient(config) const ipfs = IpfsHttpClient(config)
let result = false let result = false
try { try {
const data = ipfs.get(cid, { timeout: 10000 }) const data = ipfs.get(cid, { timeout: 60000 })
for await (const file of data) { for await (const file of data) {
if (file.path) result = true if (file.path) result = true
file.path = file.path.replace(cid, '') file.path = file.path.replace(cid, '')

@ -10,6 +10,7 @@ export class RemixEngine extends Engine {
setPluginOption ({ name, kind }) { setPluginOption ({ name, kind }) {
if (kind === 'provider') return { queueTimeout: 60000 * 2 } if (kind === 'provider') return { queueTimeout: 60000 * 2 }
if (name === 'LearnEth') return { queueTimeout: 60000 } 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 if (name === 'slither') return { queueTimeout: 60000 * 4 } // Requires when a solc version is installed
return { queueTimeout: 10000 } return { queueTimeout: 10000 }
} }

Loading…
Cancel
Save