diff --git a/pom.xml b/pom.xml index f9c90b02..d6e3c597 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ 4.0.0 com.alipay.sofa bolt - 1.6.8 + 1.6.9 jar ${project.groupId}:${project.artifactId} diff --git a/src/main/java/com/alipay/remoting/BaseRemoting.java b/src/main/java/com/alipay/remoting/BaseRemoting.java index 29b9759a..0db7a74f 100644 --- a/src/main/java/com/alipay/remoting/BaseRemoting.java +++ b/src/main/java/com/alipay/remoting/BaseRemoting.java @@ -41,10 +41,10 @@ public abstract class BaseRemoting { .getLogger("CommonDefault"); private final static long ABANDONING_REQUEST_THRESHOLD = 0L; - private CommandFactory defalutCommandFactory; + protected CommandFactory commandFactory; public BaseRemoting(CommandFactory commandFactory) { - this.defalutCommandFactory = commandFactory; + this.commandFactory = commandFactory; } /** @@ -332,7 +332,7 @@ protected abstract InvokeFuture createInvokeFuture(final Connection conn, protected CommandFactory getCommandFactory() { LOGGER .warn("The method getCommandFactory() is deprecated. Please use getCommandFactory(ProtocolCode/Connection) instead."); - return defalutCommandFactory; + return commandFactory; } protected CommandFactory getCommandFactory(Connection conn) {