Remove more global refs / state (#7723)

* remove more global refs / state

* fix job enterprise initialization

* fix api4 test compilation

* saml api endpoints fix
Этот коммит содержится в:
Chris
2017-10-26 14:21:22 -05:00
коммит произвёл Joram Wilander
родитель a0bfd2885d
Коммит 7ed011745a
23 изменённых файлов: 129 добавлений и 150 удалений

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

@@ -285,7 +285,7 @@ func InitAndLoadConfig(filename string) error {
// LoadConfig will try to search around for the corresponding config file.
// It will search /tmp/fileName then attempt ./config/fileName,
// then ../config/fileName and last it will look at fileName
func LoadConfig(fileName string) {
func LoadConfig(fileName string) *model.Config {
cfgMutex.Lock()
defer cfgMutex.Unlock()
@@ -394,6 +394,8 @@ func LoadConfig(fileName string) {
for _, listener := range cfgListeners {
listener(&oldConfig, &config)
}
return &config
}
func RegenerateClientConfig() {