Skip to content

Commit

Permalink
Merge pull request #182 from icey-yu/fix-rpc
Browse files Browse the repository at this point in the history
feat: call rpc v2
  • Loading branch information
icey-yu authored Dec 17, 2024
2 parents fed47ed + a3b49f5 commit 7c2b1c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion a2r/call_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"google.golang.org/grpc"
)

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

0 comments on commit 7c2b1c3

Please sign in to comment.