pull/1471/head
shedfreewu 10 months ago
parent bb967fc6a0
commit ef7473e170

@ -116,8 +116,13 @@ public class EnhancedFeignClient implements Client {
} }
catch (CallAbortedException callAbortedException) { catch (CallAbortedException callAbortedException) {
// circuit breaker fallback, not need to run post/exception enhanced plugins. // circuit breaker fallback, not need to run post/exception enhanced plugins.
if (callAbortedException.getFallbackInfo() != null) {
return getFallbackResponse(callAbortedException.getFallbackInfo()); return getFallbackResponse(callAbortedException.getFallbackInfo());
} }
else {
throw callAbortedException;
}
}
catch (IOException origin) { catch (IOException origin) {
enhancedPluginContext.setDelay(System.currentTimeMillis() - startMillis); enhancedPluginContext.setDelay(System.currentTimeMillis() - startMillis);
enhancedPluginContext.setThrowable(origin); enhancedPluginContext.setThrowable(origin);

Loading…
Cancel
Save