Skip to content

Commit 978ea7c

Browse files
committed
Updated documentation
1 parent 19662db commit 978ea7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resilience4j-documentation/src/docs/asciidoc/core_guides/circuitbreaker.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ In this example `map` is not invoked, because the CircuitBreaker is OPEN. The ca
101101
include::../../../../../resilience4j-circuitbreaker/src/test/java/io/github/resilience4j/circuitbreaker/CircuitBreakerTest.java[tags=shouldThrowCircuitBreakerOpenException]
102102
----
103103

104-
==== Reset
104+
===== Reset
105105

106106
The CircuitBreaker supports resetting, returning to its original state while losing all the current metrics.
107107

resilience4j-documentation/src/docs/asciidoc/implementation_details.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The CircuitBreaker does not know anything about the backend's state by itself, b
1212
----
1313
static <T> Supplier<T> decorateSupplier(CircuitBreaker circuitBreaker, Supplier<T> supplier){
1414
return () -> {
15-
CircuitBreakerUtils.obtainPermission(circuitBreaker);
15+
circuitBreaker.obtainPermission();
1616
long start = System.nanoTime();
1717
try {
1818
T returnValue = supplier.get();

0 commit comments

Comments
 (0)