Skip to content

Commit

Permalink
cp from pr #1129
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexStocks committed Apr 3, 2021
1 parent d5cf4c5 commit 4fb0a35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions registry/zookeeper/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4fb0a35

Please sign in to comment.