mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
修复RPC附加原始参数解析错误出错时直接错误返回
This commit is contained in:
@@ -92,7 +92,7 @@ func (slf *PBProcessor ) Marshal(msg interface{}) ([]byte, error){
|
||||
|
||||
var err error
|
||||
if pMsg.msg!=nil {
|
||||
pMsg.rawMsg,err = proto.Marshal(pMsg.msg.(proto.Message))
|
||||
pMsg.rawMsg,err = proto.Marshal(pMsg.msg)
|
||||
if err != nil {
|
||||
return nil,err
|
||||
}
|
||||
|
||||
@@ -245,6 +245,7 @@ func (slf *RpcHandler) HandlerRpcRequest(request *RpcRequest) {
|
||||
if request.requestHandle!=nil {
|
||||
request.requestHandle(nil, rerr)
|
||||
}
|
||||
return
|
||||
}
|
||||
}else {
|
||||
if request.localRawParam!=nil {
|
||||
@@ -255,6 +256,7 @@ func (slf *RpcHandler) HandlerRpcRequest(request *RpcRequest) {
|
||||
if request.requestHandle!=nil {
|
||||
request.requestHandle(nil, rerr)
|
||||
}
|
||||
return
|
||||
}
|
||||
}else {
|
||||
iparam = request.localParam
|
||||
|
||||
Reference in New Issue
Block a user