mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 04:02:29 +02:00
conf.GZipBufferSize is not used anymore
This commit is contained in:
@@ -197,7 +197,6 @@ type config struct {
|
|||||||
|
|
||||||
FreeMemoryInterval int
|
FreeMemoryInterval int
|
||||||
DownloadBufferSize int
|
DownloadBufferSize int
|
||||||
GZipBufferSize int
|
|
||||||
BufferPoolCalibrationThreshold int
|
BufferPoolCalibrationThreshold int
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -319,7 +318,6 @@ func init() {
|
|||||||
|
|
||||||
intEnvConfig(&conf.FreeMemoryInterval, "IMGPROXY_FREE_MEMORY_INTERVAL")
|
intEnvConfig(&conf.FreeMemoryInterval, "IMGPROXY_FREE_MEMORY_INTERVAL")
|
||||||
intEnvConfig(&conf.DownloadBufferSize, "IMGPROXY_DOWNLOAD_BUFFER_SIZE")
|
intEnvConfig(&conf.DownloadBufferSize, "IMGPROXY_DOWNLOAD_BUFFER_SIZE")
|
||||||
intEnvConfig(&conf.GZipBufferSize, "IMGPROXY_GZIP_BUFFER_SIZE")
|
|
||||||
intEnvConfig(&conf.BufferPoolCalibrationThreshold, "IMGPROXY_BUFFER_POOL_CALIBRATION_THRESHOLD")
|
intEnvConfig(&conf.BufferPoolCalibrationThreshold, "IMGPROXY_BUFFER_POOL_CALIBRATION_THRESHOLD")
|
||||||
|
|
||||||
if len(conf.Keys) != len(conf.Salts) {
|
if len(conf.Keys) != len(conf.Salts) {
|
||||||
@@ -438,12 +436,6 @@ func init() {
|
|||||||
logFatal("Download buffer size can't be greater than %d", ^uint32(0))
|
logFatal("Download buffer size can't be greater than %d", ^uint32(0))
|
||||||
}
|
}
|
||||||
|
|
||||||
if conf.GZipBufferSize < 0 {
|
|
||||||
logFatal("GZip buffer size should be greater than or equal to 0")
|
|
||||||
} else if conf.GZipBufferSize > int(^uint32(0)) {
|
|
||||||
logFatal("GZip buffer size can't be greater than %d", ^uint32(0))
|
|
||||||
}
|
|
||||||
|
|
||||||
if conf.BufferPoolCalibrationThreshold < 64 {
|
if conf.BufferPoolCalibrationThreshold < 64 {
|
||||||
logFatal("Buffer pool calibration threshold should be greater than or equal to 64")
|
logFatal("Buffer pool calibration threshold should be greater than or equal to 64")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user