Commit f4b5727f authored by Moody Salem's avatar Moody Salem

longer wait between retries

parent 1fd6b1e6
...@@ -144,7 +144,7 @@ export default function Updater() { ...@@ -144,7 +144,7 @@ export default function Updater() {
chunkedCalls.forEach((chunk, index) => chunkedCalls.forEach((chunk, index) =>
// todo: cancel retries when the block number updates // todo: cancel retries when the block number updates
retry(() => fetchChunk(multicallContract, chunk, latestBlockNumber), { n: 10, minWait: 1000, maxWait: 1500 }) retry(() => fetchChunk(multicallContract, chunk, latestBlockNumber), { n: 10, minWait: 2500, maxWait: 5000 })
.then(({ results: returnData, blockNumber: fetchBlockNumber }) => { .then(({ results: returnData, blockNumber: fetchBlockNumber }) => {
// accumulates the length of all previous indices // accumulates the length of all previous indices
const firstCallKeyIndex = chunkedCalls.slice(0, index).reduce<number>((memo, curr) => memo + curr.length, 0) const firstCallKeyIndex = chunkedCalls.slice(0, index).reduce<number>((memo, curr) => memo + curr.length, 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment