From 3243074067e75b42c4b71f82031106d3bda73dff Mon Sep 17 00:00:00 2001 From: DarthSim Date: Thu, 28 Mar 2019 16:43:28 +0600 Subject: [PATCH] conf.GZipBufferSize is not used anymore --- config.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/config.go b/config.go index 109c8626..1b4ef845 100644 --- a/config.go +++ b/config.go @@ -197,7 +197,6 @@ type config struct { FreeMemoryInterval int DownloadBufferSize int - GZipBufferSize int BufferPoolCalibrationThreshold int } @@ -319,7 +318,6 @@ func init() { intEnvConfig(&conf.FreeMemoryInterval, "IMGPROXY_FREE_MEMORY_INTERVAL") intEnvConfig(&conf.DownloadBufferSize, "IMGPROXY_DOWNLOAD_BUFFER_SIZE") - intEnvConfig(&conf.GZipBufferSize, "IMGPROXY_GZIP_BUFFER_SIZE") intEnvConfig(&conf.BufferPoolCalibrationThreshold, "IMGPROXY_BUFFER_POOL_CALIBRATION_THRESHOLD") 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)) } - 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 { logFatal("Buffer pool calibration threshold should be greater than or equal to 64") }