update range.go

This commit is contained in:
Gyu-Ho Lee 2016-03-16 02:33:55 -07:00
parent bd3d1fbe90
commit b7f0635388
1 changed files with 2 additions and 2 deletions

View File

@ -67,8 +67,8 @@ func rangeFunc(cmd *cobra.Command, args []string) {
fmt.Printf("Done with PUT '%s' to etcd\n", k)
case "zk":
fmt.Printf("PUT '%s' to zookeeper\n", k)
conn := mustCreateConnsZk(3)
_, err := conn[0].Create(k, v, zkCreateFlags, zkCreateAcl)
conns := mustCreateConnsZk(totalConns)
_, err := conns[0].Create(k, v, zkCreateFlags, zkCreateAcl)
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)