Sfoglia il codice sorgente

clientv3: remove the redundant CancelFunc invocation

Jingguo Yao 6 anni fa
parent
commit
e24564224a
1 ha cambiato i file con 0 aggiunte e 1 eliminazioni
  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)
 	}