summaryrefslogtreecommitdiff
path: root/service/http/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/config.go')
-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 76a0f539..19a2e71d 100644
--- a/service/http/config.go
+++ b/service/http/config.go
@@ -38,6 +38,10 @@ func (cfg *Config) Valid() error {
return errors.New("mailformed workers config (pool config is missing)")
}
+ if err := cfg.Workers.Pool.Valid(); err != nil {
+ return err
+ }
+
if !strings.Contains(cfg.Address, ":") {
return errors.New("mailformed server address")
}