From 2edb9f8a494c9113530255ce7406f5467fa03a76 Mon Sep 17 00:00:00 2001 From: Victor Luchits Date: Fri, 3 Nov 2023 00:08:19 +0300 Subject: [PATCH] Increase binary packet pool size to 4096 --- binpacket_pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binpacket_pool.go b/binpacket_pool.go index 17bfa99..2585c18 100644 --- a/binpacket_pool.go +++ b/binpacket_pool.go @@ -6,7 +6,7 @@ type BinaryPacketPool struct { func newBinaryPacketPool() *BinaryPacketPool { return &BinaryPacketPool{ - queue: make(chan *BinaryPacket, 1024), + queue: make(chan *BinaryPacket, 4096), } }