summaryrefslogtreecommitdiffstats
path: root/cmd/mattermost/commands/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/mattermost/commands/server.go')
-rw-r--r--cmd/mattermost/commands/server.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd/mattermost/commands/server.go b/cmd/mattermost/commands/server.go
index 1fab5c83a..1c33505f5 100644
--- a/cmd/mattermost/commands/server.go
+++ b/cmd/mattermost/commands/server.go
@@ -176,11 +176,7 @@ func runServer(configFileLocation string, disableConfigWatch bool, usedPlatform
}
if a.Elasticsearch != nil {
- a.Go(func() {
- if err := a.Elasticsearch.Start(); err != nil {
- mlog.Error(err.Error())
- }
- })
+ a.StartElasticsearch()
}
if *a.Config().JobSettings.RunJobs {