* finally remove utils.Cfg

* fix compile error

* another test compilation fix
Этот коммит содержится в:
Chris
2018-01-17 12:38:37 -06:00
коммит произвёл Harrison Healey
родитель dce0616305
Коммит 4e6cc846a6
20 изменённых файлов: 157 добавлений и 153 удалений

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

@@ -27,7 +27,6 @@ func (a *App) UpdateConfig(f func(*model.Config)) {
updated := old.Clone()
f(updated)
a.config.Store(updated)
utils.Cfg = updated
a.InvokeConfigListeners(old, updated)
}
@@ -48,7 +47,6 @@ func (a *App) LoadConfig(configFile string) *model.AppError {
utils.ConfigureLog(&cfg.LogSettings)
a.config.Store(cfg)
utils.Cfg = cfg
utils.SetSiteURL(*cfg.ServiceSettings.SiteURL)