Fix HystrixClientFallbackFactory implementation in docs. Fixes #2428

This commit is contained in:
Ryan Baxter
2017-11-08 11:00:51 -05:00
parent 65762b1dce
commit d9f7842aec

View File

@@ -1248,7 +1248,7 @@ protected interface HystrixClient {
static class HystrixClientFallbackFactory implements FallbackFactory<HystrixClient> {
@Override
public HystrixClient create(Throwable cause) {
return new HystrixClientWithFallBackFactory() {
return new HystrixClient() {
@Override
public Hello iFailSometimes() {
return new Hello("fallback; reason was: " + cause.getMessage());