Merge pull request #208 from FZambia/flate_write_pool_fix

fix flate write pool size to work with best compression
This commit is contained in:
Gary Burd 2017-01-24 15:37:53 -08:00 committed by GitHub
commit 4e4c8d08b4
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ const (
)
var (
flateWriterPools [maxCompressionLevel - minCompressionLevel]sync.Pool
flateWriterPools [maxCompressionLevel - minCompressionLevel + 1]sync.Pool
flateReaderPool = sync.Pool{New: func() interface{} {
return flate.NewReader(nil)
}}