diff options
author | Wolfy-J <[email protected]> | 2018-09-07 23:46:14 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-07 23:46:14 +0300 |
commit | 2e7cb626f0c7391002d562a3e9598105c189ea71 (patch) | |
tree | ccf216dda000ac5264f2c9e0af4f53b9f25c9812 /service | |
parent | aec7ab39e0221da8df7f2e00113eefcea27692cd (diff) |
better default values for worker config
Diffstat (limited to 'service')
-rw-r--r-- | service/http/config.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/service/http/config.go b/service/http/config.go index 3e08c72d..a15edb35 100644 --- a/service/http/config.go +++ b/service/http/config.go @@ -44,6 +44,10 @@ func (c *Config) Hydrate(cfg service.Config) error { c.Workers.Relay = "pipes" } + c.Workers.MountDefaults() + + // nanosecond to second conversion + if c.Workers.RelayTimeout < time.Microsecond { c.Workers.RelayTimeout = time.Second * time.Duration(c.Workers.RelayTimeout.Nanoseconds()) } |