summaryrefslogtreecommitdiff
path: root/service/http/config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-10 14:52:56 +0300
committerWolfy-J <[email protected]>2018-09-10 14:52:56 +0300
commit6f70e31df4a88b85e576789ebe4fee6b5fc12d86 (patch)
treeb2476df0668db9db8ee1e317fb39e3c8a98fbdb7 /service/http/config.go
parent7dae5ddd0dc0e005fba1cdb5a2ef8afe3b61b6fb (diff)
minor config improvements
Diffstat (limited to 'service/http/config.go')
-rw-r--r--service/http/config.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/http/config.go b/service/http/config.go
index 2cfe1ba2..5be42ae6 100644
--- a/service/http/config.go
+++ b/service/http/config.go
@@ -35,13 +35,13 @@ func (c *Config) Hydrate(cfg service.Config) error {
return nil
}
- c.Workers.SetDefaults()
- c.Workers.UpscaleDurations()
-
if err := c.Valid(); err != nil {
return err
}
+ c.Workers.SetDefaults()
+ c.Workers.UpscaleDurations()
+
return nil
}