Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 865 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 865 Bytes

Native Go Zookeeper Client Library

GoDoc Build Status Coverage Status

why fork repo

  1. When using the original repo to connect zookeeper server,goroutine leakage will occur
  2. when connect timeout, loop can't quit

how to use context

ctx, cancelfunc := context.WithTimeout(context.Background(), 1*time.Second)
defer cancelfunc()
c, _, err := zk.Connect(ctx, []string{"host:port"}, 0)

License

3-clause BSD. See LICENSE file.