Update README.md

This commit is contained in:
Asim Aslam
2020-11-25 09:36:53 +00:00
committed by GitHub
parent 0ff21beea2
commit 7818a050c2

View File

@@ -35,7 +35,7 @@ func main() {
}
var rsp Response
if err := c.Call("go.micro.srv.greeter", "Say.Hello", req, &rsp); err != nil {
if err := c.Call("greeter", "Say.Hello", req, &rsp); err != nil {
fmt.Println(err)
return
}
@@ -79,7 +79,7 @@ type Response struct {
func main() {
c := client.NewClient(&client.Options{Local: true})
stream, err := c.Stream("go.micro.srv.stream", "Streamer.ServerStream", Request{Count: "10"})
stream, err := c.Stream("example", "Streamer.ServerStream", Request{Count: "10"})
if err != nil {
fmt.Println(err)
return