Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
yangfuhai committed Nov 1, 2018
1 parent cf5d43f commit 9e10c2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/main/java/io/jboot/core/rpc/JbootrpcManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,14 @@ public JbootrpcHystrixFallbackListener getHystrixFallbackListener() {

private JbootrpcHystrixSetterFactory setterFactory = null;

public JbootrpcHystrixSetterFactory getHystrixSetterFactoryy() {
public JbootrpcHystrixSetterFactory getHystrixSetterFactory() {

if (setterFactory != null) {
return setterFactory;
}

if (StrUtils.isNotBlank(config.getHystrixSetterFactory())) {
fallbackListener = ClassKits.newInstance(config.getHystrixSetterFactory());

setterFactory = ClassKits.newInstance(config.getHystrixSetterFactory());
}

if (setterFactory == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl

HystrixCommand.Setter setter = JbootrpcManager
.me()
.getHystrixSetterFactoryy()
.getHystrixSetterFactory()
.createSetter(proxy, method, args);

if (setter == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl

HystrixCommand.Setter setter = JbootrpcManager
.me()
.getHystrixSetterFactoryy()
.getHystrixSetterFactory()
.createSetter(proxy, method, args);

if (setter == null) {
Expand Down

0 comments on commit 9e10c2f

Please sign in to comment.