Move cloud init back to initEnterprise (#18668)
* Move cloud init back to initEnterprise ```release-note NONE ``` * Remove debug lines ```release-note NONE ``` Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ba3a911c99
Коммит
43a99a5783
@@ -238,4 +238,7 @@ func (s *Server) initEnterprise() {
|
||||
}
|
||||
})
|
||||
}
|
||||
if cloudInterface != nil {
|
||||
s.Cloud = cloudInterface(s)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -462,14 +462,6 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
|
||||
})
|
||||
|
||||
// This enterprise init should happen after the store is set
|
||||
// but we don't want to move the s.initEnterprise() call because
|
||||
// we had side-effects with that in the past and needs further
|
||||
// investigation
|
||||
if cloudInterface != nil {
|
||||
s.Cloud = cloudInterface(s)
|
||||
}
|
||||
|
||||
s.telemetryService = telemetry.New(s, s.Store, s.SearchEngine, s.Log)
|
||||
|
||||
emailService, err := email.NewService(email.ServiceConfig{
|
||||
|
||||
Ссылка в новой задаче
Block a user