Make sure diagnostic ID is loaded before client config. (#9032)

Этот коммит содержится в:
George Goldberg
2018-07-03 16:54:59 +01:00
коммит произвёл Carlos Tadeu Panato Junior
родитель c66b567a1d
Коммит 0e17babdd3
2 изменённых файлов: 3 добавлений и 3 удалений

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

@@ -184,7 +184,6 @@ func New(options ...Option) (outApp *App, outErr error) {
})
})
app.regenerateClientConfig()
mlog.Info("Server is initializing...")
@@ -207,6 +206,9 @@ func New(options ...Option) (outApp *App, outErr error) {
return nil, errors.Wrapf(err, "unable to ensure asymmetric signing key")
}
app.EnsureDiagnosticId()
app.regenerateClientConfig()
app.initJobs()
app.AddLicenseListener(func() {
app.initJobs()

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

@@ -146,8 +146,6 @@ func runServer(configFileLocation string, disableConfigWatch bool, usedPlatform
manualtesting.Init(api)
}
a.EnsureDiagnosticId()
a.Go(func() {
runSecurityJob(a)
})