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

add panic for not support implement

parent 31f86636
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 ...@@ -121,7 +121,7 @@ func (r *consulRegistry) Subscribe(url *common.URL, notifyListener registry.Noti
// UnSubscribe : // UnSubscribe :
func (r *consulRegistry) UnSubscribe(url *common.URL, notifyListener registry.NotifyListener) { 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) { func (r *consulRegistry) subscribe(url *common.URL, notifyListener registry.NotifyListener) {
......
...@@ -138,7 +138,7 @@ func (nr *nacosRegistry) Register(url common.URL) error { ...@@ -138,7 +138,7 @@ func (nr *nacosRegistry) Register(url common.URL) error {
// UnRegister // UnRegister
func (nr *nacosRegistry) UnRegister(conf common.URL) error { func (nr *nacosRegistry) UnRegister(conf common.URL) error {
panic(" UnRegister not support in nacosRegistry ")
return nil return nil
} }
...@@ -182,7 +182,7 @@ func (nr *nacosRegistry) Subscribe(url *common.URL, notifyListener registry.Noti ...@@ -182,7 +182,7 @@ func (nr *nacosRegistry) Subscribe(url *common.URL, notifyListener registry.Noti
// UnSubscribe : // UnSubscribe :
func (nr *nacosRegistry) UnSubscribe(url *common.URL, notifyListener registry.NotifyListener) { func (nr *nacosRegistry) UnSubscribe(url *common.URL, notifyListener registry.NotifyListener) {
panic(" UnSubscribe not support in nacosRegistry ")
} }
func (nr *nacosRegistry) GetUrl() common.URL { func (nr *nacosRegistry) GetUrl() common.URL {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment