коммит произвёл
GitHub
родитель
b826421716
Коммит
f0e4794cda
@@ -42,9 +42,10 @@ func initDBCommandContext(configDSN string, readOnlyConfigStore bool) (*app.App,
|
||||
model.AppErrorInit(i18n.T)
|
||||
|
||||
s, err := app.NewServer(
|
||||
// The option order is important as app.Config option reads app.StartMetrics option.
|
||||
app.StartMetrics,
|
||||
app.Config(configDSN, readOnlyConfigStore, nil),
|
||||
app.StartSearchEngine,
|
||||
app.StartMetrics,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -65,11 +65,12 @@ func runServer(configStore *config.Store, interruptChan chan os.Signal) error {
|
||||
debug.SetTraceback("crash")
|
||||
|
||||
options := []app.Option{
|
||||
// The option order is important as app.Config option reads app.StartMetrics option.
|
||||
app.StartMetrics,
|
||||
app.ConfigStore(configStore),
|
||||
app.RunEssentialJobs,
|
||||
app.JoinCluster,
|
||||
app.StartSearchEngine,
|
||||
app.StartMetrics,
|
||||
}
|
||||
server, err := app.NewServer(options...)
|
||||
if err != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user