Remove sync.pool

This commit is contained in:
Zoltan Papp
2024-05-20 11:38:23 +02:00
parent 9ac5a1ed3f
commit 1c9c9ae47e
2 changed files with 4 additions and 15 deletions

View File

@ -124,7 +124,7 @@ func transportTo(conn net.Conn, channelID uint16, msg []byte) error {
}
func handShake(conn net.Conn) (*Peer, error) {
buf := make([]byte, 65535) // todo: reduce the buffer size
buf := make([]byte, 1500)
n, err := conn.Read(buf)
if err != nil {
log.Errorf("failed to read message: %s", err)