summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-23 13:53:50 +0300
committerWolfy-J <[email protected]>2018-09-23 13:53:50 +0300
commit4815ebb760672c7fa541c941d7f47cd316656020 (patch)
tree40cb5092d70d6882f29c9a2ec6a807574e265952 /service
parent897fa09e144e6ff4d6213346eef917c7112d75e0 (diff)
allow default values for config defaults
Diffstat (limited to 'service')
-rw-r--r--service/http/config.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/service/http/config.go b/service/http/config.go
index 5be42ae6..3e1071ac 100644
--- a/service/http/config.go
+++ b/service/http/config.go
@@ -35,11 +35,14 @@ func (c *Config) Hydrate(cfg service.Config) error {
return nil
}
+ if c.Workers != nil {
+ c.Workers.SetDefaults()
+ }
+
if err := c.Valid(); err != nil {
return err
}
- c.Workers.SetDefaults()
c.Workers.UpscaleDurations()
return nil