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

fix review comment

parent 628811bf
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ import (
"github.com/apache/dubbo-go/remoting"
)
// BaseConfigurationListener will get notified when the config it listens on changes.
// nolint
type BaseConfigurationListener struct {
configurators []config_center.Configurator
dynamicConfiguration config_center.DynamicConfiguration
......
......@@ -214,7 +214,7 @@ func (nl *nacosListener) Next() (*registry.ServiceEvent, error) {
}
}
// Close nacos registry center
// nolint
func (nl *nacosListener) Close() {
nl.stopListen()
close(nl.done)
......
......@@ -45,7 +45,7 @@ type Registry interface {
Subscribe(*common.URL, NotifyListener)
}
// NotifyListener is used for triggered when a service change notification is received.
// nolint
type NotifyListener interface {
// Notify supports notifications on the service interface and the dimension of the data type.
Notify(*ServiceEvent)
......
......@@ -163,17 +163,17 @@ func (r *zkRegistry) CloseAndNilClient() {
r.client = nil
}
// ZkClient gets zookeeper client
// nolint
func (r *zkRegistry) ZkClient() *zookeeper.ZookeeperClient {
return r.client
}
// SetZkClient sets zookeeper client
// nolint
func (r *zkRegistry) SetZkClient(client *zookeeper.ZookeeperClient) {
r.client = client
}
// ZkClientLock gets zookeeper registry control lock
// nolint
func (r *zkRegistry) ZkClientLock() *sync.Mutex {
return &r.cltLock
}
......
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