Explorar el Código

Remove unused buffer

tags/v2.2.2^2^2^2
9seconds hace 2 meses
padre
commit
4a8d099aca
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0
    2
      mtglib/internal/tls/conn.go

+ 0
- 2
mtglib/internal/tls/conn.go Ver fichero

@@ -34,7 +34,6 @@ type Conn struct {
34 34
 
35 35
 type connPayload struct {
36 36
 	readBuf      bytes.Buffer
37
-	writeBuf     bytes.Buffer
38 37
 	connBuffered *bufio.Reader
39 38
 	read         bool
40 39
 	write        bool
@@ -80,7 +79,6 @@ func New(conn essentials.Conn, read, write bool) Conn {
80 79
 	}
81 80
 
82 81
 	newConn.p.readBuf.Grow(DefaultBufferSize)
83
-	newConn.p.writeBuf.Grow(DefaultBufferSize)
84 82
 
85 83
 	return newConn
86 84
 }

Loading…
Cancelar
Guardar