修改rpc超时默认时间为15s

This commit is contained in:
boyce
2020-07-11 16:47:49 +08:00
parent 0fd154fc7f
commit 564e76302d
3 changed files with 5 additions and 5 deletions

View File

@@ -80,8 +80,8 @@ func (slf *RpcHandler) GetRpcHandler() IRpcHandler{
}
func (slf *RpcHandler) InitRpcHandler(rpcHandler IRpcHandler,getClientFun FuncRpcClient,getServerFun FuncRpcServer) {
slf.callRequest = make(chan *RpcRequest,100000)
slf.callResponeCallBack = make(chan *Call,100000)
slf.callRequest = make(chan *RpcRequest,1000000)
slf.callResponeCallBack = make(chan *Call,1000000)
slf.rpcHandler = rpcHandler
slf.mapfunctons = map[string]RpcMethodInfo{}