MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840)
* Generate and use an interface instead of *App
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
66fc096768
Коммит
17523fa5d9
@@ -145,6 +145,7 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
licenseListeners: map[string]func(){},
|
||||
clientConfig: make(map[string]string),
|
||||
}
|
||||
|
||||
for _, option := range options {
|
||||
if err := option(s); err != nil {
|
||||
return nil, errors.Wrap(err, "failed to apply option")
|
||||
@@ -209,7 +210,6 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
model.AppErrorInit(utils.T)
|
||||
|
||||
s.timezones = timezones.New()
|
||||
|
||||
// Start email batching because it's not like the other jobs
|
||||
s.InitEmailBatching()
|
||||
s.AddConfigListener(func(_, _ *model.Config) {
|
||||
|
||||
Ссылка в новой задаче
Block a user