go-zookeeper icon indicating copy to clipboard operation
go-zookeeper copied to clipboard

Can not get event channel from the channel returned by Connect

Open machelcheng opened this issue 5 years ago • 0 comments

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?

machelcheng avatar Aug 19 '19 14:08 machelcheng