summaryrefslogtreecommitdiff
path: root/service/http/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/config.go')
-rw-r--r--service/http/config.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/service/http/config.go b/service/http/config.go
index d50f59f0..20a247fb 100644
--- a/service/http/config.go
+++ b/service/http/config.go
@@ -32,14 +32,14 @@ func (c *Config) Hydrate(cfg service.Config) error {
return err
}
- if c.Workers.Relay == "" {
- c.Workers.Relay = "pipes"
- }
-
if err := c.Valid(); err != nil {
return err
}
+ if c.Workers.Relay == "" {
+ c.Workers.Relay = "pipes"
+ }
+
if c.Workers.RelayTimeout < time.Microsecond {
c.Workers.RelayTimeout = time.Second * time.Duration(c.Workers.RelayTimeout.Nanoseconds())
}