diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-13 05:17:35 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-13 05:17:35 +0800 |
commit | c2a1317c3813b13353eb84e4255284fe99ff8e6c (patch) | |
tree | 28222d3c2e35ab47032ef145c049ab2c891ea24b | |
parent | 49f1a6933cc22d1e703d631d5b861b8601ca2231 (diff) | |
download | dexon-0x-contracts-c2a1317c3813b13353eb84e4255284fe99ff8e6c.tar dexon-0x-contracts-c2a1317c3813b13353eb84e4255284fe99ff8e6c.tar.gz dexon-0x-contracts-c2a1317c3813b13353eb84e4255284fe99ff8e6c.tar.bz2 dexon-0x-contracts-c2a1317c3813b13353eb84e4255284fe99ff8e6c.tar.lz dexon-0x-contracts-c2a1317c3813b13353eb84e4255284fe99ff8e6c.tar.xz dexon-0x-contracts-c2a1317c3813b13353eb84e4255284fe99ff8e6c.tar.zst dexon-0x-contracts-c2a1317c3813b13353eb84e4255284fe99ff8e6c.zip |
Adjust timeout
-rw-r--r-- | packages/subproviders/src/subproviders/rpc_subprovider.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/subproviders/src/subproviders/rpc_subprovider.ts b/packages/subproviders/src/subproviders/rpc_subprovider.ts index 87c522271..0fb99f87a 100644 --- a/packages/subproviders/src/subproviders/rpc_subprovider.ts +++ b/packages/subproviders/src/subproviders/rpc_subprovider.ts @@ -34,8 +34,10 @@ export class RPCSubprovider extends Subprovider { Accept: 'application/json', 'Content-Type': 'application/json', }); - const timeoutMs = 1000; + // Since Ethereum nodes have a proclivity for accepting requests and never + // returning a response, we set this quite low (10 seconds). + const timeoutMs = 10000; let response; try { response = await fetchAsync( |