fix len -> cap

pull/962/head
Darien Raymond 2018-03-11 23:30:51 +01:00
parent 994aecd13c
commit 931c8597ca
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ func NewBytes(size uint32) []byte {
} }
func FreeBytes(b []byte) { func FreeBytes(b []byte) {
size := len(b) size := cap(b)
switch { switch {
case size >= 128*1024: case size >= 128*1024:
pool128k.Put(b) pool128k.Put(b)