From e3ce79c9fcfc17bb018445d0fa775bf0efd709e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sat, 18 Mar 2023 22:44:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0RPC=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=9C=80=E5=A4=A7=E5=B0=BA=E5=AF=B8=E5=88=B0512MB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/api_node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/nodes/api_node.go b/internal/nodes/api_node.go index e084e622..861feeb4 100644 --- a/internal/nodes/api_node.go +++ b/internal/nodes/api_node.go @@ -268,8 +268,8 @@ func (this *APINode) InstallSystemService() error { func (this *APINode) listenRPC(listener net.Listener, tlsConfig *tls.Config) error { var rpcServer *grpc.Server var options = []grpc.ServerOption{ - grpc.MaxRecvMsgSize(128 * 1024 * 1024), - grpc.MaxSendMsgSize(128 * 1024 * 1024), + grpc.MaxRecvMsgSize(512 << 20), + grpc.MaxSendMsgSize(512 << 20), grpc.UnaryInterceptor(this.unaryInterceptor), }