Skip to content

Commit

Permalink
set the limitation as a max number to avoid receive limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWaterLW committed Oct 13, 2023
1 parent f02da6f commit e3449a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sqle/driver/common/grpc.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
package common

import (
"math"

"google.golang.org/grpc"
)

// custom GRPC client options
var GRPCDialOptions = []grpc.DialOption{}

// custom GRPC server options
var GRPCServerOptions = []grpc.ServerOption{}
var GRPCServerOptions = []grpc.ServerOption{
grpc.MaxRecvMsgSize(math.MaxInt32),
}

func NewGRPCServer(opts []grpc.ServerOption) *grpc.Server {
return grpc.NewServer(append(opts, GRPCServerOptions...)...)
Expand Down

0 comments on commit e3449a6

Please sign in to comment.