Browse Source

Merge pull request #11162 from yaojingguo/remove-cancel

clientv3: remove the redundant CancelFunc invocation
Jingyi Hu 6 years ago
parent
commit
e84029cc04
1 changed files with 0 additions and 1 deletions
  1. 0 1
      clientv3/example_kv_test.go

+ 0 - 1
clientv3/example_kv_test.go

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