From 15421692a125d6c1de2dcbc09e05623141af773d Mon Sep 17 00:00:00 2001 From: Lucas Clemente Date: Tue, 26 Jul 2016 18:37:18 +0200 Subject: [PATCH] minor packet unpacker optimization --- packet_unpacker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packet_unpacker.go b/packet_unpacker.go index eb8313b5e..0e2514558 100644 --- a/packet_unpacker.go +++ b/packet_unpacker.go @@ -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: