Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

185-loop-default-delay-low #186

Merged
merged 5 commits into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/common/loop.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import CoreError, { ErrorCodes } from '~/common/error';
export default async function loop(
request,
condition,
{ label, maxAttempts = 10, retryDelay = 2000 } = {},
{ label, maxAttempts = 10, retryDelay = 6000 } = {},
) {
return new Promise((resolve, reject) => {
let attempt = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ export default function createUtilsModule(web3, contracts, globalOptions) {
* @param {Object} [options] - options
* @param {string} [options.label] - Debug label that will be shown when the maxAttemps error is thrown
* @param {number} [options.maxAttempts=10] - Maximun attemps until giving up
* @param {number} [options.retryDelay=2000] - Delay time between attemps in milliseconds
* @param {number} [options.retryDelay=6000] - Delay time between attemps in milliseconds
*
* @return {*} - response of the target request
*/
Expand Down