summaryrefslogtreecommitdiff
path: root/service/http/config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-19 22:32:43 +0300
committerWolfy-J <[email protected]>2018-06-19 22:32:43 +0300
commit5ba260aa4eef1b79e941129a8b20c95754d494b9 (patch)
treeb5806a614c9b479578263f1dd9cf9bc25ddadcd2 /service/http/config.go
parent126a8f0dbd040c96168a7dc73986fc76f7d661f4 (diff)
stricter pool validations
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")
}