Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
kesonan committed Dec 5, 2023
1 parent 672bdd7 commit cf339d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/tasks/grpc/client/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func main() {
var clientConf zrpc.RpcClientConf
conf.MustLoad("etc/client.yaml", &clientConf)
conn := zrpc.MustNewClient(clientConf)
client := greet.NewGreetClient(conn.Conn())
resp, err := client.Ping(context.Background(), &greet.Request{})
if err != nil {
log.Fatal(err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func main() {
var clientConf zrpc.RpcClientConf
conf.MustLoad("etc/client.yaml", &clientConf)
conn := zrpc.MustNewClient(clientConf)
client := greet.NewGreetClient(conn.Conn())
resp, err := client.Ping(context.Background(), &greet.Request{})
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit cf339d9

Please sign in to comment.