UNPKG

371 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.defaultDelayDecider = void 0;
4const util_retry_1 = require("@aws-sdk/util-retry");
5const defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(util_retry_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase));
6exports.defaultDelayDecider = defaultDelayDecider;