Pārlūkot izejas kodu

Remove unused buffer

tags/v2.2.2^2^2^2
9seconds 4 mēnešus atpakaļ
vecāks
revīzija
4a8d099aca
1 mainītis faili ar 0 papildinājumiem un 2 dzēšanām
  1. 0
    2
      mtglib/internal/tls/conn.go

+ 0
- 2
mtglib/internal/tls/conn.go Parādīt failu

@@ -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
 }

Notiek ielāde…
Atcelt
Saglabāt