Browse Source

grpc_naming.md: improve docs invoke grpc naming by balance

koko990 8 years ago
parent
commit
2ee9f0f95b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Documentation/dev-guide/grpc_naming.md

+ 1 - 1
Documentation/dev-guide/grpc_naming.md

@@ -19,7 +19,7 @@ import (
 cli, cerr := clientv3.NewFromURL("http://localhost:2379")
 cli, cerr := clientv3.NewFromURL("http://localhost:2379")
 r := &etcdnaming.GRPCResolver{Client: cli}
 r := &etcdnaming.GRPCResolver{Client: cli}
 b := grpc.RoundRobin(r)
 b := grpc.RoundRobin(r)
-conn, gerr := grpc.Dial("my-service", grpc.WithBalancer(b))
+conn, gerr := grpc.Dial("my-service", grpc.WithBalancer(b), grpc.WithBlock(), ...)
 ```
 ```
 
 
 ## Managing service endpoints
 ## Managing service endpoints