- When using the original repo to connect zookeeper server,goroutine leakage will occur
- when connect timeout, loop can't quit
ctx, cancelfunc := context.WithTimeout(context.Background(), 1*time.Second)
defer cancelfunc()
c, _, err := zk.Connect(ctx, []string{"host:port"}, 0)
3-clause BSD. See LICENSE file.