mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-21 04:04:43 +08:00
优化RPC
This commit is contained in:
@@ -179,9 +179,10 @@ func (agent *RpcAgent) Run() {
|
|||||||
rErr := "Call Rpc "+req.RpcRequestData.GetServiceMethod()+" Param error "+err.Error()
|
rErr := "Call Rpc "+req.RpcRequestData.GetServiceMethod()+" Param error "+err.Error()
|
||||||
if req.requestHandle!=nil {
|
if req.requestHandle!=nil {
|
||||||
req.requestHandle(nil, RpcError(rErr))
|
req.requestHandle(nil, RpcError(rErr))
|
||||||
|
}else{
|
||||||
|
ReleaseRpcRequest(req)
|
||||||
}
|
}
|
||||||
log.SError(rErr)
|
log.SError(rErr)
|
||||||
ReleaseRpcRequest(req)
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user