From 69ad5178b3682ea3cc5b90ea887f0617dc082ca9 Mon Sep 17 00:00:00 2001 From: Steven Date: Sun, 29 Sep 2024 22:00:15 +0800 Subject: [PATCH] chore: update `MaxCallRecvMsgSize` --- server/router/api/v1/v1.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/router/api/v1/v1.go b/server/router/api/v1/v1.go index 3170438a..a8ba11fd 100644 --- a/server/router/api/v1/v1.go +++ b/server/router/api/v1/v1.go @@ -3,6 +3,7 @@ package v1 import ( "context" "fmt" + "math" "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" "github.com/improbable-eng/grpc-web/go/grpcweb" @@ -65,7 +66,7 @@ func (s *APIV1Service) RegisterGateway(ctx context.Context, echoServer *echo.Ech conn, err := grpc.NewClient( fmt.Sprintf("%s:%d", s.Profile.Addr, s.Profile.Port), grpc.WithTransportCredentials(insecure.NewCredentials()), - grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(100*1024*1024)), + grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(math.MaxInt32)), ) if err != nil { return err