Skip to content

Commit b463bb7

Browse files
beiwei30khanimteyaz
authored andcommitted
remove getContext() (apache#3235)
1 parent ad7497e commit b463bb7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/telnet/InvokeTelnetHandler.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import java.util.Map;
3737

3838
import static org.apache.dubbo.common.utils.PojoUtils.realize;
39-
import static org.apache.dubbo.rpc.RpcContext.getContext;
4039

4140
/**
4241
* InvokeTelnetHandler
@@ -124,7 +123,6 @@ public String telnet(Channel channel, String message) {
124123
try {
125124
Object[] array = realize(list.toArray(), invokeMethod.getParameterTypes(),
126125
invokeMethod.getGenericParameterTypes());
127-
getContext().setLocalAddress(channel.getLocalAddress()).setRemoteAddress(channel.getRemoteAddress());
128126
long start = System.currentTimeMillis();
129127
RpcResult result = new RpcResult();
130128
try {

0 commit comments

Comments
 (0)