tracywenjin commented on code in PR #10798:
URL: https://github.com/apache/dubbo/pull/10798#discussion_r1013769296
##########
dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/filter/support/ConsumerContextFilter.java:
##########
@@ -75,15 +75,14 @@ public Result invoke(Invoker<?> invoker, Invocation
invocation) throws RpcExcept
if (CollectionUtils.isNotEmpty(supportedSelectors)) {
for (PenetrateAttachmentSelector supportedSelector :
supportedSelectors) {
- Map<String, Object> selected = supportedSelector.select();
+ Map<String, Object> selected =
supportedSelector.select(invocation, RpcContext.getClientAttachment(),
RpcContext.getServerAttachment());
if (CollectionUtils.isNotEmptyMap(selected)) {
((RpcInvocation)
invocation).addObjectAttachments(selected);
}
}
Review Comment:
第三方
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]