Skip to content

Commit 4e4c8d0

Browse files
authored
Merge pull request #208 from FZambia/flate_write_pool_fix
fix flate write pool size to work with best compression
2 parents 0674c7c + ac61189 commit 4e4c8d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compression.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const (
1919
)
2020

2121
var (
22-
flateWriterPools [maxCompressionLevel - minCompressionLevel]sync.Pool
22+
flateWriterPools [maxCompressionLevel - minCompressionLevel + 1]sync.Pool
2323
flateReaderPool = sync.Pool{New: func() interface{} {
2424
return flate.NewReader(nil)
2525
}}

0 commit comments

Comments
 (0)