This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch 1.5
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/1.5 by this push:
new a8a0299 cp from pr #1129
a8a0299 is described below
commit a8a0299efd00c42fbb7021d2746f250e15968548
Author: AlexStocks <[email protected]>
AuthorDate: Sat Apr 3 19:12:14 2021 +0800
cp from pr #1129
---
registry/zookeeper/registry.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/registry/zookeeper/registry.go b/registry/zookeeper/registry.go
index 8b21aae..f67f984 100644
--- a/registry/zookeeper/registry.go
+++ b/registry/zookeeper/registry.go
@@ -79,6 +79,7 @@ func newZkRegistry(url *common.URL) (registry.Registry,
error) {
return nil, err
}
+ r.WaitGroup().Add(1) //zk client start successful, then wg +1
go zookeeper.HandleClientRestart(r)
r.listener = zookeeper.NewZkEventListener(r.client)