Reduce the coupling of the mailservice with the rest of the application (#16898)
* Reduce the coupling of the mailservice with the rest of the application * Fixing tests in CI * Simplifiying mailservice config * Addressing PR review comments * Fixing tests * Removing unnecesary type definition * Fixing ServerName usage
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
69ff686667
Коммит
d06a62ce64
@@ -487,7 +487,9 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
}
|
||||
s.WebSocketRouter.app = fakeApp
|
||||
|
||||
if nErr := mailservice.TestConnection(s.Config()); nErr != nil {
|
||||
mailConfig := s.MailServiceConfig()
|
||||
|
||||
if nErr := mailservice.TestConnection(mailConfig); nErr != nil {
|
||||
mlog.Error("Mail server connection test is failed", mlog.Err(nErr))
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user