优化原始RPC跨进程调用

This commit is contained in:
boyce
2020-12-22 18:48:48 +08:00
parent 4b67c59b1e
commit 417538e2b4
2 changed files with 2 additions and 2 deletions

View File

@@ -250,7 +250,7 @@ func (handler *RpcHandler) HandlerRpcRequest(request *RpcRequest) {
log.Error(err)
return
}
v(request.inputArgs.GetRawData())
v(request.RpcRequestData.GetInParam())
return
}

View File

@@ -146,7 +146,7 @@ func (agent *RpcAgent) Run() {
//交给程序处理
serviceMethod := strings.Split(req.RpcRequestData.GetServiceMethod(),".")
if len(serviceMethod)!=2 {
if len(serviceMethod) < 1 {
rpcError := RpcError("rpc request req.ServiceMethod is error")
agent.WriteResponse(processor,req.RpcRequestData.GetServiceMethod(),req.RpcRequestData.GetSeq(),nil,rpcError)
ReleaseRpcRequest(req)