From fb82d3fb9fdeccd4b969761ad95f65b89265413d Mon Sep 17 00:00:00 2001 From: Mark4z <36187602+mark4z@users.noreply.github.com> Date: Sat, 18 Feb 2023 17:01:31 +0800 Subject: [PATCH] Update dubbo3_server.go --- pkg/triple/dubbo3_server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/triple/dubbo3_server.go b/pkg/triple/dubbo3_server.go index 7d792d1..bb6c6b0 100644 --- a/pkg/triple/dubbo3_server.go +++ b/pkg/triple/dubbo3_server.go @@ -212,10 +212,10 @@ func newGrpcServerWithCodec(opt *config.Option) *grpc.Server { } if opt.GRPCMaxServerRecvMsgSize != 0 { - serverOpts = append(serverOpts, grpc.MaxRecvMsgSize(opt.GRPCMaxServerSendMsgSize)) + serverOpts = append(serverOpts, grpc.MaxRecvMsgSize(opt.GRPCMaxServerRecvMsgSize)) } if opt.GRPCMaxCallSendMsgSize != 0 { - serverOpts = append(serverOpts, grpc.MaxSendMsgSize(opt.GRPCMaxServerRecvMsgSize)) + serverOpts = append(serverOpts, grpc.MaxSendMsgSize(opt.GRPCMaxCallSendMsgSize)) } if opt.ProxyModeEnable {