diff options
Diffstat (limited to 'service/http/config.go')
-rw-r--r-- | service/http/config.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/service/http/config.go b/service/http/config.go index fb4574b1..76a0f539 100644 --- a/service/http/config.go +++ b/service/http/config.go @@ -34,6 +34,10 @@ func (cfg *Config) Valid() error { return errors.New("mailformed workers config") } + if cfg.Workers.Pool == nil { + return errors.New("mailformed workers config (pool config is missing)") + } + if !strings.Contains(cfg.Address, ":") { return errors.New("mailformed server address") } |