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>
Этот коммит содержится в:
Agniva De Sarker
2021-10-15 19:29:06 +05:30
коммит произвёл GitHub
родитель ba3a911c99
Коммит 43a99a5783
2 изменённых файлов: 3 добавлений и 8 удалений

Просмотреть файл

@@ -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{