We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
示例网关节点服务A: err := s.RPC("TopicService.NewUser", request) fmt.Println(err,"-------------------err") if err != nil { return errors.Trace(err) }
Master节点服务B: func (ts *TopicService) NewUser(s *session.Session, msg *protocol.NewUserRequest) error { fmt.Println("---------------NewUser err") return errors.Trace(errors.New("------------------123 err return"))
问题:服务B不管是关闭进程还是正常返回错误,服务A的s.RPC调用后err永远是nil
The text was updated successfully, but these errors were encountered:
a.rpcHandler(a.session, msg, true) 问题在于这个rpc是一个go异步回调函数,并没返回值
Sorry, something went wrong.
@lwelcom Can you submit a pull request to fix it?
No branches or pull requests
Question
示例网关节点服务A:
err := s.RPC("TopicService.NewUser", request)
fmt.Println(err,"-------------------err")
if err != nil {
return errors.Trace(err)
}
Master节点服务B:
func (ts *TopicService) NewUser(s *session.Session, msg *protocol.NewUserRequest) error {
fmt.Println("---------------NewUser err")
return errors.Trace(errors.New("------------------123 err return"))
问题:服务B不管是关闭进程还是正常返回错误,服务A的s.RPC调用后err永远是nil
The text was updated successfully, but these errors were encountered: