minor packet unpacker optimization

This commit is contained in:
Lucas Clemente
2016-07-26 18:37:18 +02:00
parent daa328460f
commit 15421692a1

View File

@@ -44,7 +44,7 @@ func (u *packetUnpacker) Unpack(publicHeaderBinary []byte, hdr *publicHeader, da
return nil, qerr.MissingPayload
}
fs := make([]frames.Frame, 0, 1)
fs := make([]frames.Frame, 0, 2)
// Read all frames in the packet
ReadLoop: