Browse Source

clientv3: remove the redundant CancelFunc invocation

Jingguo Yao 6 years ago
parent
commit
e24564224a
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")
 	gresp, err := kvc.Get(context.TODO(), "key")
-	cancel()
 	if err != nil {
 	if err != nil {
 		log.Fatal(err)
 		log.Fatal(err)
 	}
 	}