Skip to content

Commit 7c2b1c3

Browse files
authored
Merge pull request #182 from icey-yu/fix-rpc
feat: call rpc v2
2 parents fed47ed + a3b49f5 commit 7c2b1c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

a2r/call_v2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"google.golang.org/grpc"
1010
)
1111

12-
func CallV2[A, B any](rpc func(ctx context.Context, req *A, options ...grpc.CallOption) (*B, error), c *gin.Context, opts ...*Option[A, B]) {
12+
func CallV2[A, B any](c *gin.Context, rpc func(ctx context.Context, req *A, options ...grpc.CallOption) (*B, error), opts ...*Option[A, B]) {
1313
req, err := ParseRequestNotCheck[A](c)
1414
if err != nil {
1515
apiresp.GinError(c, err)

0 commit comments

Comments
 (0)