Explorar el Código

Merge pull request #11162 from yaojingguo/remove-cancel

clientv3: remove the redundant CancelFunc invocation
Jingyi Hu hace 6 años
padre
commit
e84029cc04
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  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)
 	}