Sfoglia il codice sorgente

example: fix typo for grpc (#1405)

sorry...fixed #1403
田欧 7 anni fa
parent
commit
605aa1c30f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/grpc/gin/main.go

+ 1 - 1
examples/grpc/gin/main.go

@@ -26,7 +26,7 @@ func main() {
 
 		// Contact the server and print out its response.
 		req := &pb.HelloRequest{Name: name}
-		res, err := client.SayHello(g, req)
+		res, err := client.SayHello(c, req)
 		if err != nil {
 			c.JSON(http.StatusInternalServerError, gin.H{
 				"error": err.Error(),