clientv3: remove the redundant CancelFunc invocation

This commit is contained in:
Jingguo Yao 2019-09-18 23:06:14 +08:00
parent 501bb07dd3
commit e24564224a

View File

@ -249,7 +249,6 @@ func ExampleKV_txn() {
}
gresp, err := kvc.Get(context.TODO(), "key")
cancel()
if err != nil {
log.Fatal(err)
}