summaryrefslogtreecommitdiff
path: root/service/http
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-07-08 21:35:11 -0700
committerWolfy-J <[email protected]>2018-07-08 21:35:11 -0700
commit2f2b3137d243a75a98cf2a0a3ab32e7fb407e48d (patch)
tree4ba6be5a20c4bb58aa28d73b4cd3dc17371c5de3 /service/http
parentf688229fe93016064ad67b381e774881d991b8ab (diff)
minor CS
Diffstat (limited to 'service/http')
-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())
}