优化RPC

This commit is contained in:
duanhf2012
2021-10-18 09:34:47 +08:00
parent ca624029a0
commit 313cc032a1

View File

@@ -179,9 +179,10 @@ func (agent *RpcAgent) Run() {
rErr := "Call Rpc "+req.RpcRequestData.GetServiceMethod()+" Param error "+err.Error()
if req.requestHandle!=nil {
req.requestHandle(nil, RpcError(rErr))
}else{
ReleaseRpcRequest(req)
}
log.SError(rErr)
ReleaseRpcRequest(req)
continue
}