Skip to content

Commit 058625b

Browse files
committed
typo: 0.5MiB -> 256KiB
Signed-off-by: Xiaolong Chen <[email protected]>
1 parent d401bc4 commit 058625b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/pool/conn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ func NewConnWithBufferSize(netConn net.Conn, readBufSize, writeBufSize int) *Con
3737
createdAt: time.Now(),
3838
}
3939

40-
// Use specified buffer sizes, or fall back to 0.5MiB defaults if 0
40+
// Use specified buffer sizes, or fall back to 256KiB defaults if 0
4141
if readBufSize > 0 {
4242
cn.rd = proto.NewReaderSize(netConn, readBufSize)
4343
} else {
44-
cn.rd = proto.NewReader(netConn) // Uses 0.5MiB default
44+
cn.rd = proto.NewReader(netConn) // Uses 256KiB default
4545
}
4646

4747
if writeBufSize > 0 {

0 commit comments

Comments
 (0)