mirror of
https://github.com/duanhf2012/origin.git
synced 2026-03-15 05:07:29 +08:00
优化本地node中的服务rpc
This commit is contained in:
@@ -461,11 +461,6 @@ func (handler *RpcHandler) callRpc(nodeId int, serviceMethod string, args interf
|
|||||||
|
|
||||||
pClient := pClientList[0]
|
pClient := pClientList[0]
|
||||||
pCall := pClient.Go(handler.rpcHandler,false, serviceMethod, args, reply)
|
pCall := pClient.Go(handler.rpcHandler,false, serviceMethod, args, reply)
|
||||||
if pCall.Err != nil {
|
|
||||||
err = pCall.Err
|
|
||||||
ReleaseCall(pCall)
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
err = pCall.Done().Err
|
err = pCall.Done().Err
|
||||||
pClient.RemovePending(pCall.Seq)
|
pClient.RemovePending(pCall.Seq)
|
||||||
|
|||||||
Reference in New Issue
Block a user