summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-07 23:46:14 +0300
committerWolfy-J <[email protected]>2018-09-07 23:46:14 +0300
commit2e7cb626f0c7391002d562a3e9598105c189ea71 (patch)
treeccf216dda000ac5264f2c9e0af4f53b9f25c9812 /service
parentaec7ab39e0221da8df7f2e00113eefcea27692cd (diff)
better default values for worker config
Diffstat (limited to 'service')
-rw-r--r--service/http/config.go4
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())
}