Skip to content

Commit

Permalink
make provider listener opts more friendly to append
Browse files Browse the repository at this point in the history
  • Loading branch information
ranlavanet committed May 14, 2024
1 parent 0b07a64 commit 5695fe4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions protocol/rpcprovider/provider_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ func NewProviderListener(ctx context.Context, networkAddress lavasession.Network

// GRPC
lis := chainlib.GetListenerWithRetryGrpc("tcp", networkAddress.Address)
serverReceiveMaxMessageSize := grpc.MaxRecvMsgSize(1024 * 1024 * 32) // setting receive size to 32mb instead of 4mb default
grpcServer := grpc.NewServer(serverReceiveMaxMessageSize)
opts := []grpc.ServerOption{
grpc.MaxRecvMsgSize(1024 * 1024 * 32), // setting receive size to 32mb instead of 4mb default
}
grpcServer := grpc.NewServer(opts...)

wrappedServer := grpcweb.WrapServer(grpcServer)
handler := func(resp http.ResponseWriter, req *http.Request) {
Expand Down

0 comments on commit 5695fe4

Please sign in to comment.