Skip to content

Commit

Permalink
fix for bolt msg extend class
Browse files Browse the repository at this point in the history
  • Loading branch information
chuailiwu committed May 9, 2024
1 parent 1be84fa commit 1102474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/alipay/remoting/BaseRemoting.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ public abstract class BaseRemoting {
.getLogger("CommonDefault");
private final static long ABANDONING_REQUEST_THRESHOLD = 0L;

protected CommandFactory defaultCommandFactory;
protected CommandFactory commandFactory;

public BaseRemoting(CommandFactory commandFactory) {
this.defaultCommandFactory = commandFactory;
this.commandFactory = commandFactory;
}

/**
Expand Down Expand Up @@ -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 defaultCommandFactory;
return commandFactory;
}

protected CommandFactory getCommandFactory(Connection conn) {
Expand Down

0 comments on commit 1102474

Please sign in to comment.