summaryrefslogtreecommitdiffstats
path: root/cmd/platform
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-11-06 18:05:28 +0000
committerChristopher Speller <crspeller@gmail.com>2017-11-06 10:05:28 -0800
commit72ae0ab9bb17dba902385803f099ed71e0b84a5a (patch)
tree65dcf4968e206db9786780b0ba5199bb706495c8 /cmd/platform
parent48139656f1e925f0a5443e94445596fb238e0db8 (diff)
downloadchat-72ae0ab9bb17dba902385803f099ed71e0b84a5a.tar.gz
chat-72ae0ab9bb17dba902385803f099ed71e0b84a5a.tar.bz2
chat-72ae0ab9bb17dba902385803f099ed71e0b84a5a.zip
PLT-8011: Make Elasticsearch startup fully async. (#7761)
* PLT-8011: Make Elasticsearch startup fully async. * Use a.Go
Diffstat (limited to 'cmd/platform')
-rw-r--r--cmd/platform/server.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmd/platform/server.go b/cmd/platform/server.go
index 93bc00f88..00dbb9ec5 100644
--- a/cmd/platform/server.go
+++ b/cmd/platform/server.go
@@ -137,9 +137,11 @@ func runServer(configFileLocation string) {
}
if a.Elasticsearch != nil {
- if err := a.Elasticsearch.Start(); err != nil {
- l4g.Error(err.Error())
- }
+ a.Go(func() {
+ if err := a.Elasticsearch.Start(); err != nil {
+ l4g.Error(err.Error())
+ }
+ })
}
if *utils.Cfg.JobSettings.RunJobs {