This commit is contained in:
wangchuxiao 2023-06-08 15:19:08 +08:00
parent 8d574b242b
commit 47541c1d87

View File

@ -103,7 +103,7 @@ func NewClient(zkServers []string, zkRoot string, options ...ZkOption) (*ZkClien
client.CloseZK() client.CloseZK()
return nil, err return nil, err
} }
resolver.Register(client) // resolver.Register(client)
var wg sync.WaitGroup var wg sync.WaitGroup
wg.Add(2) wg.Add(2)
go client.refresh(&wg) go client.refresh(&wg)