diff options
author | Wolfy-J <[email protected]> | 2018-09-23 13:53:50 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-23 13:53:50 +0300 |
commit | 4815ebb760672c7fa541c941d7f47cd316656020 (patch) | |
tree | 40cb5092d70d6882f29c9a2ec6a807574e265952 | |
parent | 897fa09e144e6ff4d6213346eef917c7112d75e0 (diff) |
allow default values for config defaults
-rw-r--r-- | service/http/config.go | 5 |
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 |