补充与优化rpc超时功能RAEDME说明

This commit is contained in:
duanhf2012
2023-08-01 11:05:51 +08:00
parent dfb6959843
commit 0f3a965d73
3 changed files with 34 additions and 8 deletions

View File

@@ -334,7 +334,8 @@ func (handler *RpcHandler) CallMethod(client *Client,ServiceMethod string, param
pCall.callback = &callBack
pCall.Seq = client.generateSeq()
callSeq = pCall.Seq
pCall.TimeOut = DefaultRpcTimeout
pCall.ServiceMethod = ServiceMethod
client.AddPending(pCall)
//有返回值时