Skip to content

Commit 8eccfea

Browse files
[RateLimiter] Minor fixes
1 parent 7cfdbfc commit 8eccfea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rate_limiter.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ the number of requests to the API::
119119

120120
// the argument of consume() is the number of tokens to consume
121121
// and returns an object of type Limit
122-
if (false === $anonymous_api_limiter->consume(1)->isAccepted()) {
122+
if (false === $limiter->consume(1)->isAccepted()) {
123123
throw new TooManyRequestsHttpException();
124124
}
125125

0 commit comments

Comments
 (0)