parent
737d2fb7ab
commit
605aa1c30f
@ -26,7 +26,7 @@ func main() {
|
|||||||
|
|
||||||
// Contact the server and print out its response.
|
// Contact the server and print out its response.
|
||||||
req := &pb.HelloRequest{Name: name}
|
req := &pb.HelloRequest{Name: name}
|
||||||
res, err := client.SayHello(g, req)
|
res, err := client.SayHello(c, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.JSON(http.StatusInternalServerError, gin.H{
|
c.JSON(http.StatusInternalServerError, gin.H{
|
||||||
"error": err.Error(),
|
"error": err.Error(),
|
||||||
|
Loading…
Reference in New Issue
Block a user