mirror of
https://github.com/619dev/PaperPhone.git
synced 2026-07-02 23:14:39 +08:00
3 lines
204 B
JavaScript
3 lines
204 B
JavaScript
import { MAXIMUM_RETRY_DELAY } from "@smithy/util-retry";
|
|
export const defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase));
|