From 2f2b3137d243a75a98cf2a0a3ab32e7fb407e48d Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sun, 8 Jul 2018 21:35:11 -0700 Subject: minor CS --- service/http/config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'service/http/config.go') 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()) } -- cgit v1.2.3