Skip to content
Snippets Groups Projects
Commit 104b278e authored by wangwx's avatar wangwx
Browse files

remove client close from registry

parent 775a84a9
No related branches found
No related tags found
No related merge requests found
......@@ -178,7 +178,6 @@ func (r *zkRegistry) DoUnsubscribe(conf *common.URL) (registry.Listener, error)
// CloseAndNilClient closes listeners and clear client
func (r *zkRegistry) CloseAndNilClient() {
r.client.Close()
r.client = nil
}
......
......@@ -604,12 +604,3 @@ func (z *ZookeeperClient) Reconnect() <-chan struct{} {
func (z *ZookeeperClient) Close() {
z.Conn.Close()
}
//func closeZookeeperClient() {
// if atomic.LoadUint32(&clientHaveCreated) == 1 {
// mux.Lock()
// defer mux.Unlock()
// zkClient.Conn.Close()
// zkClient = nil
// }
//}
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