This is an automated email from the ASF dual-hosted git repository.

hyunkun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 309b29f  update routing-rule.md (#1021)
309b29f is described below

commit 309b29f0c1b587a5a9c857f980816e550da11638
Author: wuwen <wuwen...@aliyun.com>
AuthorDate: Fri Jan 7 10:38:33 2022 +0800

    update routing-rule.md (#1021)
---
 content/zh/docsv2.7/user/examples/routing-rule.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/content/zh/docsv2.7/user/examples/routing-rule.md 
b/content/zh/docsv2.7/user/examples/routing-rule.md
index ac14d99..47d42bb 100644
--- a/content/zh/docsv2.7/user/examples/routing-rule.md
+++ b/content/zh/docsv2.7/user/examples/routing-rule.md
@@ -219,7 +219,7 @@ host != 172.22.3.* => host != 172.22.3.*
 #### Consumer
 
 ```java
-RpcContext.getContext().setAttachment(Constants.REQUEST_TAG_KEY,"tag1");
+RpcContext.getContext().setAttachment(CommonConstants.TAG_KEY,"tag1");
 ```
 
 请求标签的作用域为每一次 invocation,使用 attachment 来传递请求标签,注意保存在 attachment 
中的值将会在一次完整的远程调用中持续传递,得益于这样的特性,我们只需要在起始调用时,通过一行代码的设置,达到标签的持续传递。

Reply via email to