修复RPC同时兼容json与pb的一些bug

This commit is contained in:
boyce
2020-10-27 17:00:15 +08:00
parent 11cb070da2
commit 1d2c1bb7ad
5 changed files with 13 additions and 5 deletions

View File

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