clientv3: use default client kv

This commit is contained in:
Anthony Romano
2016-02-24 22:49:24 -08:00
parent d430c7baf7
commit 3e57bbf317
21 changed files with 65 additions and 103 deletions

View File

@ -38,9 +38,7 @@ func Example() {
}
defer cli.Close() // make sure to close the client
kvc := clientv3.NewKV(cli)
_, err = kvc.Put(context.TODO(), "foo", "bar")
_, err = cli.Put(context.TODO(), "foo", "bar")
if err != nil {
log.Fatal(err)
}