diff options
author | Wolfy-J <[email protected]> | 2018-07-08 21:20:49 -0700 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-07-08 21:20:49 -0700 |
commit | f688229fe93016064ad67b381e774881d991b8ab (patch) | |
tree | 0e77b17e43aab09b1f8d238fd968fdc325c7e4db | |
parent | c78c38d07ecc7a9fb9ac089c2aee18d8e51db601 (diff) |
mod updated
-rw-r--r-- | cmd/rr/cmd/root.go | 2 | ||||
-rw-r--r-- | service/http/config.go | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/cmd/rr/cmd/root.go b/cmd/rr/cmd/root.go index 086f518c..1a21cfc9 100644 --- a/cmd/rr/cmd/root.go +++ b/cmd/rr/cmd/root.go @@ -58,7 +58,7 @@ type ViperWrapper struct { v *viper.Viper } -// get nested config section (sub-map), returns nil if section not found. +// Get nested config section (sub-map), returns nil if section not found. func (w *ViperWrapper) Get(key string) service.Config { sub := w.v.Sub(key) if sub == nil { diff --git a/service/http/config.go b/service/http/config.go index ba303aae..d50f59f0 100644 --- a/service/http/config.go +++ b/service/http/config.go @@ -32,6 +32,10 @@ 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 } |