Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Can not get event channel from the channel returned by Connect #221

Open
machelcheng opened this issue Aug 19, 2019 · 0 comments
Open

Can not get event channel from the channel returned by Connect #221

machelcheng opened this issue Aug 19, 2019 · 0 comments

Comments

@machelcheng
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant