mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
v3client: fix doc to use e.Server
Was passing embed.Etcd instead of etcdserver.EtcdServer.
This commit is contained in:
parent
8f83d11724
commit
dea2516177
@ -34,7 +34,7 @@
|
||||
// }
|
||||
//
|
||||
// // wrap the EtcdServer with v3client
|
||||
// cli := v3client.New(e)
|
||||
// cli := v3client.New(e.Server)
|
||||
//
|
||||
// // use like an ordinary clientv3
|
||||
// resp, err := cli.Put(context.TODO(), "some-key", "it works!")
|
||||
|
Loading…
x
Reference in New Issue
Block a user