Commit c5ea78d6 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 9d3b3ddc
...@@ -375,12 +375,12 @@ func pktEncodeZ(m msg) *pktBuf { ...@@ -375,12 +375,12 @@ func pktEncodeZ(m msg) *pktBuf {
// pktEncodeM encodes message into raw M (msgpack) packet. // pktEncodeM encodes message into raw M (msgpack) packet.
func pktEncodeM(m msg) *pktBuf { func pktEncodeM(m msg) *pktBuf {
pkb := allocPkb() pkb := allocPkb()
data := pkb.data data := pkb.data
data = msgp.AppendArrayHeader(data, 4) data = msgp.AppendArrayHeader(data, 4)
data = msgp.AppendInt64(data, m.msgid) // msgid data = msgp.AppendInt64(data, m.msgid) // msgid
data = msgp.AppendInt64(data, int64(m.flags)) // flags data = msgp.AppendInt64(data, int64(m.flags)) // flags
data = msgp.AppendString(data, m.method) // method data = msgp.AppendString(data, m.method) // method
// arg // arg
// it is interface{} - use shamaton/msgpack since msgp does not handle // it is interface{} - use shamaton/msgpack since msgp does not handle
// arbitrary interfaces well. // arbitrary interfaces well.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment