yu199195 commented on code in PR #4532:
URL: https://github.com/apache/shenyu/pull/4532#discussion_r1155778597


##########
shenyu-plugin/shenyu-plugin-dubbo/shenyu-plugin-apache-dubbo/src/main/java/org/apache/shenyu/plugin/apache/dubbo/ApacheDubboPlugin.java:
##########
@@ -63,15 +63,15 @@ protected Mono<Void> doDubboInvoker(final ServerWebExchange 
exchange,
                                         final RuleData rule,
                                         final MetaData metaData,
                                         final String param) {
-        RpcContext.getContext().setAttachment(Constants.DUBBO_SELECTOR_ID, 
selector.getId());
-        RpcContext.getContext().setAttachment(Constants.DUBBO_RULE_ID, 
rule.getId());
-        RpcContext.getContext().setAttachment(Constants.DUBBO_REMOTE_ADDRESS, 
Objects.requireNonNull(exchange.getRequest().getRemoteAddress()).getAddress().getHostAddress());
+        
RpcContext.getClientAttachment().setAttachment(Constants.DUBBO_SELECTOR_ID, 
selector.getId());

Review Comment:
   All apache dubbo version have this method?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to