Native ZooKeeper client for Go. This project is no longer maintained. Please use https://github.com/go-zookeeper/zk instead.
BSD 3-Clause "New" or "Revised" License
1.64k
stars
672
forks
source link
Can not get event channel from the channel returned by Connect #221
Open
machelcheng opened 5 years ago
Hi, i just meet a problem, I get event from channel returned by Connect failed. my code is like this:
conn, session, err := zk.Connect(....) go func() { for { event, ok := <-session if !ok { log.Errorf("fail to get session event") os.Exit(-1) }
When will I get event from session failed?