We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b8e130 + 696b2fe commit e7478b1Copy full SHA for e7478b1
utils/bytes_buffer_pool.go
@@ -24,7 +24,7 @@ func BytesBufferGet() (data *bytes.Buffer) {
24
}
25
26
func BytesBufferPut(data *bytes.Buffer) {
27
- if data == nil || len(data.Bytes()) > TooBigBlockSize {
+ if data == nil || data.Len() > TooBigBlockSize {
28
return
29
30
bytesBufferPool.Put(data)
0 commit comments