3
0

Improve healtcheck for mail

This commit is contained in:
Denis Arh
2020-09-02 21:45:23 +02:00
parent 3f1b094cc9
commit f4be53a046

View File

@@ -7,13 +7,13 @@ import (
// Healtcheck for (global) scheduler
func Healthcheck(ctx context.Context) error {
if defaultDialerError == nil {
return defaultDialerError
}
if defaultDialer == nil {
return fmt.Errorf("uninitialized")
}
if defaultDialerError != nil {
return defaultDialerError
}
return nil
}