Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed May 29, 2024
1 parent 9345f18 commit 706b3a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/website/docs/recipes/barrier_circuit_breaker.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ In this case, we can write some kind of circuit breaker that will stop the token
function barrierCircuitBreaker(barrier, { maxAttempts }) {
const $currentAttempt = createStore(0).on(
// every time after the Barrier is performed
barrier.forceDeactivate,
barrier.performed,
// increment the current attempt
(attempt) => attempt + 1
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('Barrier API', () => {
{ maxAttempts }: { maxAttempts: number }
) {
const $currentAttempt = createStore(0).on(
barrier.forceDeactivate,
barrier.performed,
(attempt) => attempt + 1
);

Expand Down

0 comments on commit 706b3a5

Please sign in to comment.