Skip to content

Commit

Permalink
Merge pull request etcd-io#101 from nate-double-u/12669-copy-update
Browse files Browse the repository at this point in the history
updating grpc_naming.md to match etcd-io/etcd PR 12669
  • Loading branch information
spzala authored Feb 9, 2021
2 parents aec163d + e15ada2 commit eaccadf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions content/docs/current/dev-guide/grpc_naming.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"})})
```
```

0 comments on commit eaccadf

Please sign in to comment.