Skip to content

Commit

Permalink
fixup! feat(vow): retriable tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Sep 23, 2024
1 parent f9075d1 commit 20417e3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/vow/src/retriable.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { toPassableCap, VowShape } from './vow-utils.js';
/**
* @typedef {object} PreparationOptions
* @property {() => VowKit<any>} makeVowKit
* @property {IsRetryableReason} isRetryableReason
* @property {IsRetryableReason} [isRetryableReason]
*/

/**
Expand All @@ -38,10 +38,13 @@ const AdminRetriableFlowI = M.interface('RetriableFlowAdmin', {

/**
* @param {Zone} outerZone
* @param {PreparationOptions} [outerOptions]
* @param {PreparationOptions} outerOptions
*/
export const prepareRetriableTools = (outerZone, outerOptions = {}) => {
const { makeVowKit, isRetryableReason } = outerOptions;
export const prepareRetriableTools = (outerZone, outerOptions) => {
const {
makeVowKit,
isRetryableReason = /** @type {IsRetryableReason} */ (() => false),
} = outerOptions;

/**
* So we can give out wrapper functions easily and recover flow objects
Expand Down

0 comments on commit 20417e3

Please sign in to comment.