Skip to content

Commit

Permalink
chore: register codec with grpc server (#12359) (#12361)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jun 27, 2022
1 parent 53d0cc9 commit bf97cee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/grpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"google.golang.org/grpc"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/server/config"
"github.com/cosmos/cosmos-sdk/server/grpc/gogoreflection"
reflection "github.com/cosmos/cosmos-sdk/server/grpc/reflection/v2alpha1"
Expand All @@ -28,6 +29,7 @@ func StartGRPCServer(clientCtx client.Context, app types.Application, cfg config
}

grpcSrv := grpc.NewServer(
grpc.ForceServerCodec(codec.NewProtoCodec(clientCtx.InterfaceRegistry).GRPCCodec()),
grpc.MaxSendMsgSize(maxSendMsgSize),
grpc.MaxRecvMsgSize(maxRecvMsgSize),
)
Expand Down

0 comments on commit bf97cee

Please sign in to comment.