diff options
author | Wolfy-J <[email protected]> | 2018-07-08 21:35:11 -0700 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-07-08 21:35:11 -0700 |
commit | 2f2b3137d243a75a98cf2a0a3ab32e7fb407e48d (patch) | |
tree | 4ba6be5a20c4bb58aa28d73b4cd3dc17371c5de3 /service/http | |
parent | f688229fe93016064ad67b381e774881d991b8ab (diff) |
minor CS
Diffstat (limited to 'service/http')
-rw-r--r-- | service/http/config.go | 8 |
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()) } |