优化异步调用,错误通过回调返回

This commit is contained in:
duanhf2012
2020-03-31 19:28:16 +08:00
parent 5344da1276
commit 9c9f72d559
2 changed files with 31 additions and 13 deletions

View File

@@ -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