summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/rr/cmd/root.go2
-rw-r--r--service/http/config.go4
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
}