summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-02 16:35:37 +0300
committerWolfy-J <[email protected]>2019-05-02 16:35:37 +0300
commite6d2972c9f69fefe169be448b18ce776cd4a8fa5 (patch)
tree87b31baf138d584065f747f303b2bd0935f6dcfd /service
parentff7693a6e1dbf5bb63c00eb66a3201e2cd955d20 (diff)
remove old param
Diffstat (limited to 'service')
-rw-r--r--service/http/config.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/service/http/config.go b/service/http/config.go
index 7549cb6c..899a5083 100644
--- a/service/http/config.go
+++ b/service/http/config.go
@@ -17,10 +17,6 @@ type Config struct {
// SSL defines https server options.
SSL SSLConfig
- // MaxRequest specified max size for payload body in megabytes, set 0 to unlimited.
- // Deprecated: use `maxRequestSize` instead
- MaxRequest int64
-
// MaxRequestSize specified max size for payload body in megabytes, set 0 to unlimited.
MaxRequestSize int64
@@ -72,7 +68,6 @@ func (c *Config) Hydrate(cfg service.Config) error {
return err
}
- c.mergeBackwardCompatibility()
c.Workers.UpscaleDurations()
return c.Valid()
@@ -120,10 +115,3 @@ func (c *Config) Valid() error {
return nil
}
-
-// Perform merge operations for deprecated params to provide backward compatibility
-func (c *Config) mergeBackwardCompatibility() {
- if c.MaxRequestSize == 0 && c.MaxRequest != 0 {
- c.MaxRequestSize = c.MaxRequest
- }
-}