-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hertz服务发现组件中, withTags()是不是没有实际用处 #596
Comments
我看到你使用的 Nacos,在 Nacos 的配置中,info.Tags 会配置为 Nacos 的 Metadata,类似的在 Consul 中也是把 Tags 配置成的 Metadata,原因在于拓展许多都并没有自定义 Info 而是复用的 Hertz 中的 Info 导致一些配置项并不匹配。后面有时间我会统一修改一下。 |
okkkkkkkk 了解了 |
very useful. the more u use hertz, the more u'll know withtag is very useful. |
Hello, you can try to change it yourself first, and I will help code review. |
oh! i will try to fix it |
cool |
Describe the Question
服务发现Nacos组件中,请求的时候带上withTags()发现没什么用似乎,请求也不会都发送到带上tag的那个hertz服务器。
Reproducible Code
client代码
server代码
Expected behavior
我以为是都转发到对应tag的服务器
但是结果如下图
Hertz version:
Please provide the version of Hertz you are using.
Environment:
mod文件如下图
The text was updated successfully, but these errors were encountered: