Removed (*App).Shutdown and updated all references. (#15088)

Этот коммит содержится в:
Doug Lauder
2020-07-22 13:30:11 -04:00
коммит произвёл GitHub
родитель 6b5c0bb5d2
Коммит b372b98aca
23 изменённых файлов: 87 добавлений и 114 удалений

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

@@ -117,14 +117,6 @@ func (a *App) InitServer() {
a.saml = a.srv.Saml
}
// DO NOT CALL THIS.
// This is to avoid having to change all the code in cmd/mattermost/commands/* for now
// shutdown should be called directly on the server
func (a *App) Shutdown() {
a.Srv().Shutdown()
a.srv = nil
}
func (a *App) initJobs() {
if jobsLdapSyncInterface != nil {
a.srv.Jobs.LdapSync = jobsLdapSyncInterface(a)