From e15ada20f119c1714e507eb1a3ca8d620f92d86d Mon Sep 17 00:00:00 2001 From: Nate W <4453979+nate-double-u@users.noreply.github.com> Date: Mon, 8 Feb 2021 13:11:18 -0800 Subject: [PATCH] updating grpc_naming.md to match etcd-io/etcd PR https://github.com/etcd-io/etcd/pull/12669 copy change Signed-off-by: Nate W <4453979+nate-double-u@users.noreply.github.com> --- content/docs/current/dev-guide/grpc_naming.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/docs/current/dev-guide/grpc_naming.md b/content/docs/current/dev-guide/grpc_naming.md index 6038b4c0..e0deda04 100644 --- a/content/docs/current/dev-guide/grpc_naming.md +++ b/content/docs/current/dev-guide/grpc_naming.md @@ -20,7 +20,7 @@ import ( cli, cerr := clientv3.NewFromURL("http://localhost:2379") etcdResolver, err := resolver.NewBuilder(clus.RandClient()); -conn, gerr := grpc.Dial("etcd://foo/bar/my-service", grpc.WithResolvers(etcdResolver)) +conn, gerr := grpc.Dial("etcd:///foo/bar/my-service", grpc.WithResolvers(etcdResolver)) ``` ## Managing service endpoints @@ -86,4 +86,5 @@ em := endpoints.NewManager(c, "foo") err := em.Update(context.TODO(), []*endpoints.UpdateWithOpts{ endpoints.NewDeleteUpdateOpts("foo/bar/my-service/e1", endpoints.Endpoint{Addr: "1.2.3.4"}), endpoints.NewAddUpdateOpts("foo/bar/my-service/e1", endpoints.Endpoint{Addr: "1.2.3.14"})}) -``` \ No newline at end of file +``` +