test discov

This commit is contained in:
wangchuxiao
2023-06-01 17:21:05 +08:00
parent cd273a9094
commit f3dacda90e
2 changed files with 5 additions and 4 deletions
+4 -4
View File
@@ -101,11 +101,11 @@ func NewClient(zkServers []string, zkRoot string, options ...ZkOption) (*ZkClien
return nil, err
}
resolver.Register(client)
// var wg sync.WaitGroup
// wg.Add(2)
var wg sync.WaitGroup
wg.Add(1)
// go client.refresh(&wg)
// go client.watch(&wg)
// wg.Wait()
go client.watch(&wg)
wg.Wait()
return client, nil
}