-
Notifications
You must be signed in to change notification settings - Fork 4
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
subscribe无法收到服务全部下线 #24
Comments
嗯,确实内置了防推空逻辑,应该提供一个环境变量让用户设置该逻辑开关。 请问你是什么情况下去要获取到空列表呢? |
需要清理内存里的数据呀,否则的话业务层保存的服务器信息始终会保留呀。这个和Java的ClientSDK提供的逻辑不一样啊~~ |
@mingxinkejian 确实是有不一样,nacos-client java 默认防推空为 false。之前我这边都给设置成 true ,大多数情况下还没发现需要 false 的。所以实现 rust 版客户端的时候就默认 true 了 |
感谢大佬,可以加一个设置来控制这个空推。 |
请尝试 0.3.2 可以在参数设置,也可以环境变量 |
例如
当前有1个服务,该服务下有N个服务器列表。依次下线时,监听回调只能收到前2个服务服务器下线的通知,当第三个服务器下线后,因为服务器全部下线,服务列表已经是空的了,此时不会回调服务监听。
The text was updated successfully, but these errors were encountered: