优化rpc错误返回

This commit is contained in:
duanhf2012
2020-04-01 14:42:33 +08:00
parent 7e6b3098d4
commit a76527c7d7
2 changed files with 15 additions and 12 deletions

View File

@@ -135,13 +135,13 @@ type RpcRequest struct {
Seq uint64 // sequence number chosen by client
ServiceMethod string // format: "Service.Method"
NoReply bool //是否需要返回
//packbody
InParam []byte
//other data
localReply interface{}
localParam interface{} //本地调用的参数列表
requestHandle RequestHandler
callback *reflect.Value
}