Skip to content
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

/example/watcher/discovery/main.go中通过"FindMicroServiceInstances"告诉sc关注的provider信息后,怎样可以取消关注? #1075

Open
xushan0125 opened this issue Mar 1, 2023 · 1 comment

Comments

@xushan0125
Copy link

Is your feature request related to a problem? Please describe.
/example/watcher/discovery/main.go中首先通过"WatchMicroService(...)"通知sc进行watch,再通过"FindMicroServiceInstances(...)"告知sc关注的provider信息,那怎样告知sc取消对某个provider信息的关注呢?

Describe the solution you'd like
是否有提供接口支持取消对某个provider信息的关注,当provider的状态更新时,不再接受它的变化通知?

@tianxiaoliang
Copy link
Member

tianxiaoliang commented Apr 3, 2023

在微服务进程启动后,就没有API能够取消订阅了,只能在运行前决定。如果想做这个功能,需要独立开发新特性

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants