From 745caa88de7c5ec052383280814a0e9ef9960f45 Mon Sep 17 00:00:00 2001 From: boyce Date: Tue, 29 Jun 2021 16:00:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=8F=E5=B0=91rpc=20client=E7=9A=84?= =?UTF-8?q?=E5=86=99=E7=AE=A1=E9=81=93=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rpc/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/client.go b/rpc/client.go index cf1e6a1..821be36 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -47,7 +47,7 @@ func (client *Client) Connect(id int,addr string) error { client.callRpcTimeout = 15*time.Second client.ConnNum = 1 client.ConnectInterval = time.Second*2 - client.PendingWriteNum = 2000000 + client.PendingWriteNum = 200000 client.AutoReconnect = true client.LenMsgLen = 2 client.MinMsgLen = 2