Browse Source

Merge remote-tracking branch 'origin/3.0.x'

pull/592/head
Olga MaciaszekSharma 4 years ago
parent
commit
8f403f85f2
  1. 5
      spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignCircuitBreakerInvocationHandler.java

5
spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignCircuitBreakerInvocationHandler.java

@ -106,7 +106,7 @@ class FeignCircuitBreakerInvocationHandler implements InvocationHandler {
return () -> { return () -> {
try { try {
RequestContextHolder.setRequestAttributes(requestAttributes); RequestContextHolder.setRequestAttributes(requestAttributes);
return this.dispatch.get(method).invoke(args); return dispatch.get(method).invoke(args);
} }
catch (RuntimeException throwable) { catch (RuntimeException throwable) {
throw throwable; throw throwable;
@ -114,9 +114,6 @@ class FeignCircuitBreakerInvocationHandler implements InvocationHandler {
catch (Throwable throwable) { catch (Throwable throwable) {
throw new RuntimeException(throwable); throw new RuntimeException(throwable);
} }
finally {
RequestContextHolder.resetRequestAttributes();
}
}; };
} }

Loading…
Cancel
Save