内容压缩增加繁忙(busy)检测

This commit is contained in:
GoEdgeLab
2024-04-17 08:36:14 +08:00
parent 1e24eceee9
commit e7b70dd9b3
7 changed files with 58 additions and 28 deletions

View File

@@ -3,7 +3,6 @@
package compressions
import (
"compress/gzip"
teaconst "github.com/TeaOSLab/EdgeNode/internal/const"
"io"
)
@@ -15,8 +14,7 @@ func init() {
return
}
sharedGzipWriterPool = NewWriterPool(CalculatePoolSize(), gzip.BestCompression, func(writer io.Writer, level int) (Writer, error) {
sharedGzipWriterPool = NewWriterPool(CalculatePoolSize(), func(writer io.Writer, level int) (Writer, error) {
return newGzipWriter(writer)
})
}