mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
修复RPC同时兼容json与pb的一些bug
This commit is contained in:
@@ -108,8 +108,7 @@ func (agent *RpcAgent) WriteRespone(processor IRpcProcessor,serviceMethod string
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
errM = agent.conn.WriteMsg(bytes)
|
||||
errM = agent.conn.WriteMsg([]byte{uint8(processor.GetProcessorType())},bytes)
|
||||
if errM != nil {
|
||||
log.Error("Rpc %s return is error:%+v",serviceMethod,errM)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user