Skip to content

Commit

Permalink
Fix consumer side call DefaultExecutorRepository#getExecutor method c…
Browse files Browse the repository at this point in the history
…annot hit the cache when use the service discovery pattern (#7717)
  • Loading branch information
BurningCN committed May 11, 2021
1 parent 4fe06ec commit cafd8c4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
import static org.apache.dubbo.common.constants.CommonConstants.INTERFACE_KEY;
import static org.apache.dubbo.common.constants.CommonConstants.REMOTE_APPLICATION_KEY;
import static org.apache.dubbo.common.constants.CommonConstants.VERSION_KEY;
import static org.apache.dubbo.common.constants.CommonConstants.SIDE_KEY;
import static org.apache.dubbo.common.constants.CommonConstants.CONSUMER_SIDE;

public class InstanceAddressURL extends URL {
private ServiceInstance instance;
Expand Down Expand Up @@ -108,6 +110,8 @@ public String getParameter(String key) {
return getServiceInterface();
} else if (REMOTE_APPLICATION_KEY.equals(key)) {
return instance.getServiceName();
} else if (SIDE_KEY.equals(key)) {
return CONSUMER_SIDE;
}

String protocolServiceKey = getProtocolServiceKey();
Expand Down

0 comments on commit cafd8c4

Please sign in to comment.