Skip to content
Snippets Groups Projects
Commit 0e3199d1 authored by 邹毅贤's avatar 邹毅贤
Browse files

add panic for not support implement

parent 8f61206c
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ func (r *consulRegistry) Subscribe(url *common.URL, notifyListener registry.Noti
// UnSubscribe :
func (r *consulRegistry) UnSubscribe(url *common.URL, notifyListener registry.NotifyListener) {
panic(" UnSubscribe not support in consulRegistry ")
}
func (r *consulRegistry) subscribe(url *common.URL, notifyListener registry.NotifyListener) {
......
......@@ -138,7 +138,7 @@ func (nr *nacosRegistry) Register(url common.URL) error {
// UnRegister
func (nr *nacosRegistry) UnRegister(conf common.URL) error {
panic(" UnRegister not support in nacosRegistry ")
return nil
}
......@@ -182,7 +182,7 @@ func (nr *nacosRegistry) Subscribe(url *common.URL, notifyListener registry.Noti
// UnSubscribe :
func (nr *nacosRegistry) UnSubscribe(url *common.URL, notifyListener registry.NotifyListener) {
panic(" UnSubscribe not support in nacosRegistry ")
}
func (nr *nacosRegistry) GetUrl() common.URL {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment