Commit b7fde840 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 789323c9
...@@ -417,6 +417,7 @@ func pktEncodeZ(m msg) *pktBuf { ...@@ -417,6 +417,7 @@ 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()
// XXX better use msgp.Append for msgid, flags, method ?
data, err := msgpack.Encode(tuple{m.msgid, m.flags, m.method, m.arg}) data, err := msgpack.Encode(tuple{m.msgid, m.flags, m.method, m.arg})
if err != nil { if err != nil {
panic(err) // all our types are expected to be supported by msgpack panic(err) // all our types are expected to be supported by msgpack
......
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