Skip to content

Commit

Permalink
Fix typos (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
kapiaszczyk authored Mar 12, 2024
1 parent 819217c commit 07b1aac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ bucket4j.filters[0].metrics.enabled=true
bucket4j.filters[0].metrics.types=CONSUMED_COUNTER,REJECTED_COUNTER # (optional) if your not interested in the consumed counter you can specify only the rejected counter
bucket4j.filters[0].metrics.tags[0].key=IP
bucket4j.filters[0].metrics.tags[0].expression=getRemoteAddr()
bucket4j.filters[0].metrics.tags[0].types=REJECTED_COUNTER # (optionial) this tag should for example only be applied for the rejected counter
bucket4j.filters[0].metrics.tags[0].types=REJECTED_COUNTER # (optional) this tag should for example only be applied for the rejected counter
bucket4j.filters[0].metrics.tags[1].key=URL
bucket4j.filters[0].metrics.tags[1].expression=getRequestURI()
bucket4j.filters[0].metrics.tags[2].key=USERNAME
Expand Down Expand Up @@ -286,7 +286,7 @@ public class MyQueryExecutePredicate extends ExecutePredicate<HttpServletRequest
public boolean test(HttpServletRequest t) {
// the logic to implement the predicate
boolean result = t.getParameterMap().containsKey(query);
log.debug("my-query-parametetr;value:%s;result:%s".formatted(query, result));
log.debug("my-query-parameter;value:%s;result:%s".formatted(query, result));
return result;
}
Expand Down Expand Up @@ -422,6 +422,7 @@ Some important considerations:
** cacheName not changed -> BAD_REQUEST
- The configCacheManager currently does *not* contain validation in the setValue method. The configuration should be validated before calling the this method.


[[monitoring]]
=== Monitoring - Spring Boot Actuator

Expand Down Expand Up @@ -614,7 +615,7 @@ bucket4j:
----

Conditional filtering depending of anonymous or logged in user. Because the *bucket4j.filters[0].strategy* is *first*
you havn't to check in the second rate-limit that the user is logged in. Only the first one is executed.
you don't have to check in the second rate-limit that the user is logged in. Only the first one is executed.

[source,yml]
----
Expand Down

0 comments on commit 07b1aac

Please sign in to comment.