mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-15 15:16:35 +08:00
内容压缩增加繁忙(busy)检测
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
package compressions
|
||||
|
||||
import (
|
||||
"compress/flate"
|
||||
teaconst "github.com/TeaOSLab/EdgeNode/internal/const"
|
||||
"io"
|
||||
)
|
||||
@@ -15,7 +14,7 @@ func init() {
|
||||
return
|
||||
}
|
||||
|
||||
sharedDeflateWriterPool = NewWriterPool(CalculatePoolSize(), flate.BestCompression, func(writer io.Writer, level int) (Writer, error) {
|
||||
sharedDeflateWriterPool = NewWriterPool(CalculatePoolSize(), func(writer io.Writer, level int) (Writer, error) {
|
||||
return newDeflateWriter(writer)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user