mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-23 13:44:41 +08:00
优化异步调用,错误通过回调返回
This commit is contained in:
@@ -253,7 +253,10 @@ func (slf *Server) rpcHandlerAsyncGo(callerRpcHandler IRpcHandler,noReply bool,m
|
||||
if mutiCoroutine == true {
|
||||
go rpcHandler.HandlerRpcRequest(&req)
|
||||
}else{
|
||||
rpcHandler.PushRequest(&req)
|
||||
err := rpcHandler.PushRequest(&req)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user