Prechádzať zdrojové kódy

v3client: fix doc to use e.Server

Was passing embed.Etcd instead of etcdserver.EtcdServer.
Anthony Romano 9 rokov pred
rodič
commit
dea2516177
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      etcdserver/api/v3client/doc.go

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

@@ -34,7 +34,7 @@
 //	}
 //	}
 //
 //
 //	// wrap the EtcdServer with v3client
 //	// wrap the EtcdServer with v3client
-//	cli := v3client.New(e)
+//	cli := v3client.New(e.Server)
 //
 //
 //	// use like an ordinary clientv3
 //	// use like an ordinary clientv3
 //	resp, err := cli.Put(context.TODO(), "some-key", "it works!")
 //	resp, err := cli.Put(context.TODO(), "some-key", "it works!")