mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #11162 from yaojingguo/remove-cancel
clientv3: remove the redundant CancelFunc invocation
This commit is contained in:
commit
e84029cc04
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user