Skip to content

Commit 17f244c

Browse files
committed
Fix typos in docs
1 parent 22fc02e commit 17f244c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/website/docs/recipes/barrier_circuit_breaker.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> Recipe based on the question from [issue #458](https://github.com/igorkamyshev/farfetched/issues/458)
44
5-
Let us assume we have a basic [_Barrier_](https://farfetched.dev/docs/api/barrier) that is activated on a 401 HTTP error code. The barrier is used to renew the token after failing to access the protected resource.
5+
Let us assume we have a basic [_Barrier_](/api/barrier) that is activated on a 401 HTTP error code. The barrier is used to renew the token after failing to access the protected resource.
66

77
```ts
88
import { createBarrier, isHttpErrorCode } from '@farfetched/core';
@@ -21,7 +21,7 @@ It is a basic example based on the case-study [Auth token](/recipes/auth_token).
2121

2222
:::
2323

24-
In this setup, it is possible to get infinite loops if the token renewal in case of some mistake in [_Query_](/api/primitives/query) declaration. For example, if we made a typo in the header name, the [_Barrier_](https://farfetched.dev/docs/api/barrier) will be activated on every request, and the token will be renewed every time, which will not lead to successful [_Query_](/api/primitives/query) execution.
24+
In this setup, it is possible to get infinite loops if the token renewal in case of some mistake in [_Query_](/api/primitives/query) declaration. For example, if we made a typo in the header name, the [_Barrier_](/api/barrier) will be activated on every request, and the token will be renewed every time, which will not lead to successful [_Query_](/api/primitives/query) execution.
2525

2626
```ts
2727
import { createJsonQuery, applyBarrier } from '@farfetched/core';
@@ -68,7 +68,7 @@ function barrierCircuitBreaker(barrier, { maxAttempts }) {
6868
}
6969
```
7070

71-
This function can be applied to the existing [_Barrier_](https://farfetched.dev/docs/api/barrier) to limit the number of attempts to renew the token 👇
71+
This function can be applied to the existing [_Barrier_](/api/barrier) to limit the number of attempts to renew the token 👇
7272

7373
```ts
7474
barrierCircuitBreaker(authBarrier, { maxAttempts: 3 });

0 commit comments

Comments
 (0)