Skip to content

Commit

Permalink
fixup! fix(vow): handle resolution loops in vows
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Jun 22, 2024
1 parent 5727679 commit 14e6447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vow/src/when.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export const makeWhen = (
if (seenPayloads.has(vowV0)) {
throw Error('Vow resolution cycle detected');
}
seenPayloads.add(vowV0);
result = await basicE(vowV0)
.shorten()
.then(
res => {
seenPayloads.add(vowV0);
priorRetryValue = undefined;
return res;
},
Expand Down

0 comments on commit 14e6447

Please sign in to comment.