summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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