修复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

@@ -226,7 +226,7 @@ func (slf *Client) RawGo(processor IRpcProcessor,noReply bool,serviceMethod stri
return call
}
err = slf.conn.WriteMsg(bytes)
err = slf.conn.WriteMsg([]byte{uint8(processor.GetProcessorType())},bytes)
if err != nil {
slf.RemovePending(call.Seq)
call.Err = err