Parcourir la source

v3client: fix doc to use e.Server

Was passing embed.Etcd instead of etcdserver.EtcdServer.
Anthony Romano il y a 9 ans
Parent
commit
dea2516177
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      etcdserver/api/v3client/doc.go

+ 1 - 1
etcdserver/api/v3client/doc.go

@@ -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!")